Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Single facet with values summed up in FacetCharts

    Hi Isomorphic

    In the Simple Chart example in the showcase
    http://www.smartclient.com/smartgwtee/showcase/#simpleChart
    I wish to have a single facet
    Code:
    chart.setFacets(new Facet("region", "Region"));
    If I make this setting, the chart will only plot the first record it encounters and not the sum of all the records with the same facet value.
    For eg. the facet chart will only plot the record ("West", "Cars", 37) and not the summed up value of ("West", "Cars", 37), ("West", "Trucks", 23) and ("West", "Motorcycles", 12).

    How can I achieve this? Is there a setting that I can use? I would not like create another recordlist by iterating through the records and summing them up.
    I am trying this with SNAPSHOT_v9.1d_2013-09-23/Enterprise Deployment 2013-09-23

    Thanks
    Attached Files

    #2
    Single-facet charts with values summed-up across another facet are not currently supported by FacetChart.
    To achieve this, you will have to change the data passed into the FacetChart (either by creating another list of records or by adding another property to the existing records) so that the data values are the sums that you need.

    Regards
    Isomorphic Software

    Comment

    Working...
    X