The main idea of templates is to segregate chart settings and data section for easy changing and/or reuse in another charts that should look the same way.įor example you can create a template that defines that chart should be of column type, has a certain title, certain axes titles and scales. In this tutorial we will explain what templates can be used for and how they can be used. Templates can be stored within char XML and in an external file. Chart template is a named preset for any of the chart settings (except certain points settings). The element can be enabled and customized only for a specific data series.To simplify the creation of chart An圜hart provides "Chart Templates" technique. Enabling and Customizing Lineīy default, Value Highlighter is disabled. For further details on all available functions, please refer to XML Reference. ![]() This section gives a brief coverage on configuring the element. The illustration below demonstrates the elements Value Highlighter consists of: Besides the line, Value Highlighter can contain one or more labels, which could display the current value or any static text. The line is drawn through the point pinned by the mouse pointer. Value Highlighter is a horizontal line drawn through the entire plot area. You can also be interested in Y-Axis value highlighter, which enables user to see the value he hovers on the plot without reference to series value(s). These two elements together form an element known to end-users as Crosshair. ![]() Those are Date Highlighter, which is an X-axis customization, and Value Highlighter, which is a customization of a specific series. The An圜hart Stock component offers two additional elements for highlighting values under the mouse pointer. Specifics is described in the following articles: Series of RangeBar, RangeArea and RangeSplineArea types have two markers instead of one (for high and low values). Turning states on and off can be done in enabled attribute of and. By default markers are turned on in "Hover" state, and turned off in "Normal" state. ![]() Īlso, you can disable markers for the certain state. By default markers are enabled for all series types. To turn markers on or off enabled attribute of node is used. This node should be placed in the settings block of the given series. Table below lists all series types and required fields: Series Typeīy default all series are colored in black, to color series you should set its color explicitly.Īs you can see all settings are done in node. See more about series and data providers in Understanding Data Model article.ĭepending on the series type the data provider should contain specific named fields. ![]() See more about series coloring in Setting Color and using %Color token.ĭata_provider sets the data provider name with data for the series. Type sets the type of the series and can be one of the following:Ĭolor sets the color of the series and dependent elements. To show series on the chart you should declare it in the series list.Īs you can see series is defined using node, with type, color and data_provider attributes. Series is a visual representation of the data provider on the chart. To learn more about specific settings for each type please see Series Types and Settings. Series of any type has some common settings and we will talk about them in this article. Each chart can contain any number of series, but it is not recommended to put more than ten series on one chart, for chart becomes unreadable when too many series are shown at the same time.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |