Home Forums Presentation Controls Setting barChart control values

Viewing 1 reply thread
  • Author
    Posts
    • #8281
      JeremyJeremy
      Participant

      Is there any specific documentation for the barChart/ other chart controls? I found the documentation for the api used (http://api.highcharts.com/highcharts/) but not nexj documentation in how to configure the control itself (referencing the data collection, what the colKey/rowKey are used for etc)

      The picker for the data collection property is a bit confusing as well, it asks for an attribute but the picker only lets me choose the class. Does there need to be a collection class specifically? Or can it be an attribute of a class?
      Thanks,

      J

      0
    • #8503
      Ivan SuryaIvan Surya
      Member

      Hi Jeremy,

      Currently, there is no NexJ documentation for configuring the chart controls, so I will try my best to answer your questions.

      On the chart controls, data collection properties are obsolete and we do not use them anymore to populate the charts with data.

      Instead, we use the CategoryDataset properties to feed data into the charts. Let me explain some of the properties there and use this highcharts demo as an example:

      rowKey
      This property refers to the attribute that stores the series of the data point. In the highcharts demo, “Tokyo” and “New York” are examples of rowKey values.
      columnKey
      This property refers to the attribute that stores the category of the data point. In the highcharts demo, “Jan” and “Feb” are examples to columnKey values.
      value
      This property refers to the attribute that stores the value of the data point. In the highcharts demo, Tokyo in Jan has a value of 49.9.
      label
      This property refers to the attribute that stores the label of the data point. In the highcharts demo, the bars do not seem to use labels.

      I hope this clarifies the settings on chart controls for you. Please let me know if you have any further questions.

      Thanks,

      Ivan

      0
Viewing 1 reply thread
  • You must be logged in to reply to this topic.