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


      #3
      We are currently evaluating a pro license and were wondering if support for this has been added somewhere in the last 12 years?
      To reference the same showcase (http://www.smartclient.com/smartgwte...e/#simpleChart), is there a way to make it combine the values of all records that have the same facet values, e.g. for Cars/West there are 2 records (with fuel 'gas' and 'electric'), is there a way to make it display the sum without changing the data passed into the FacetChart?

      Comment


        #4
        There has been no interest expressed in adding this as a feature. Summing the data values is very straightforward, so, having the FacetChart have features to do auto-summing seems like over-engineering.

        Comment

        Working...
        X