[wt-3.3.6] Imlementation of WAbstractChartModel?
Added by Стойчо Стефанов Stoycho Stefanov over 8 years ago
Hey,
In order to provide better performance for charts containing a lot of data, the charting library has been overhauled to use WAbstractChartModels, instead of WAbstractItemModels, avoiding the use of boost::any.
this new feature sounds great.
Do you consider to provide an implementation of the WAbstractChartModel or you leave this to the user?
Regards,
Stoycho
s. I know it sounds like I'm too lazy to do it by myself
Replies (3)
RE: [wt-3.3.6] Imlementation of WAbstractChartModel? - Added by Стойчо Стефанов Stoycho Stefanov over 8 years ago
OR, what could be more efficient a template class that implements the WAbstractChartModel
RE: [wt-3.3.6] Imlementation of WAbstractChartModel? - Added by Koen Deforche over 8 years ago
Indeed we do not supply one ourselves, as the only reason to want to implement this, is performance, and performance is greatly affected by assumptions you can make on the underlying data.
The API is straight forward though as it is similar to WAbstractTableModel except for the generic types and roles being replaced by actual types and dedicated methods.
You know what they say: sometimes if you want it to be good, you have to do it yourself :-)
RE: [wt-3.3.6] Imlementation of WAbstractChartModel? - Added by Стойчо Стефанов Stoycho Stefanov over 8 years ago
indeed!
and I did it.
Thanks for reply!