Display values in the legend

Line chart v 1.2.5 has a great new feature - you can display values in the legend. Check this example and try to move your mouse over the plot area.

http://www.amcharts.com/line/

Here are all possible settings for values in the legend:

<legend>
……
   <values>
      <enabled>true</enabled>
      <width></width>
      <align></align>
      <unit></unit>
      <unit_position></unit_position>
       <text><![CDATA[{value}]]></text>
   </values>
……
</legend>

Update:
instead of setting unit and unit position now you can format value useing HTML. This allows you to  display {description}, {series}, {percents} in the legend too.

<unit> and <unit_position> will work too.

2 Responses to “Display values in the legend”

  1. Eddy Says:

    How do you change the size of the legend, I want to make it bigger.
    Should I change “”
    Is there documentation on this somewhere?

    My values are disappearing off the bottom.
    My graph has a few to many data series (15).

    Kind Regards
    Eddy.

  2. am Says:

    please, post your questions to forum.
    To change increase space for your legend you should set bigger bottom margin of plot area.

Leave a Reply

All support questions should be posted to support forums:
AmCharts: http://www.amcharts.com/forum/
AmMap: http://www.ammap.com/forum/