To do that just add subnode and add as many nodes as you need with subnode in them, that contain essential data. When creating legend you can add your own items with any information you want to see on the legend, ![]() In automatic items formatting you can use all keywords listed in the table in the end of this article, but notice that automatic item that return series can't use point keywords. The sample of automatic items usage and legend settings can be found in Custom Attributes In Legend Chart Sample. To set format for an item - create subnode in item attribute and format them as described in formatting chapter above. In Normal Legend mode you can set custom format for each item ItemĪll points from all series from the chart.Īll categories (different items names) from the chart. The following table explain what each of automatic items will place in the legend. That specifies the series name (if needed). To add or modify legend items add subnode in node:Įach automatic item have attributes source which can be "Points" or "Series" and series, The big advantage of automatic items is that they create interactive legend items that highlight the series or the point they are describing. When creating legend you can use so called automatic items, they allow you to customize legend easily. Font settings for legend item are defined in subnode of node, learn how to configure font in Fonts tutorial. More information about formatting can be found in Keywords and Formatting tutorial and Number Formatting tutorial. Point and Series Keywords are used in conjunction with automatic keyword - see next chapter. When formatting items you can use Point and Series keywords listed in the end of this article, and Custom Attributes of the series or point, this topic is covered in Custom Attributes chapter. This formatting will be applied to all items if the legend, but in normal mode - you can override it Sample Pie Chart with a legend of a fixed (150px - width, 30% of data plot height) size positioned to the "Left" of the chart, aligned to " Near", with padding of 0 pixels: The space between data plot and legend is controlled using padding attribute. You can control whether legend is aligned or spread by data plot or all chart using align_by attribute, its possible values are DataPlot and Chart. Spread align will make legend to stretch out to all available space on the Top, Bottom, Right or Left of the chart. Near, Far, Center action depends on value of position attribute, for example "Near" align for "Left" position will mean that legend is placed to the Top Left corner of the chart. When working with non-Float positions you can align legend to a desired side of the chart using align attribute, its possible values are: Near, When setting percent value - you are setting it against chart width/height or data plot width/height - depending on align_by attribute value. Width and height can be set both in pixels - for example, width="150" or in percents, for example width="50%". If it would not be possible to place all legend items in a legend of the specified size - scroll bar will appear. Sizeīy default the size of the legend is calculated automatically, but, no matter what position mode you use, you can set width an height for the legend using width and height attributes of node. Legend is positioned as any other Control, read more about it in Controls and Controls Positioning. Possible values for position node are: Left, ![]() NOTE: Not only line and spline charts can have and show markers - all other types can have marker and shownĭepending on the layout and type of your chart you can position legend to a desired place using position attribute of node. To enable legend you have to specify in node: In this article all legends features and setting are explained and demonstrated. You can define where legend should be placed on the chart and even create "floating" legend to save the space. In An圜hart Legend configuration is all the same for all chart types. Legend is a table on a chart listing and explaining the symbols and colors used, usually along with series and/or point data point names and any other additional information that helps user to understand a chart.
0 Comments
Leave a Reply. |