Monday, January 16, 2012

Ext JS 4.0 providing "unconventional” data to charts


I have a store which always contains a single record. Lets say the record looks like this:




{'good': 5, 'bad': 2, 'neutral': 3}



How would I render that as a Pie chart ? Ext.js normally uses each record in a store as one point of the series. In my case, I have only one record and want it to be used as three points in the series.

1 comment:

  1. Split it into three records. You can create your own instances of Record and fill them with data using your original record as source.

    ReplyDelete