- Way to combine charts. For, for example:

- Formatting templates. Chart formats contain quite a bit of data and this needs to be condensed down or moved to external format classes (for reusability and ease of use).
- Positioning api. I really couldn't get the positioning of multiple charts down with my previous simple API (I didn't have enough time). Hopefully it can be simplified to a few API calls.
Combining:
Html.Chart<type>(...) .NewLineSeries(...).Join.NewLineChart(...) // not all series can be joined with each other. For example, pie vs. line. .NewPieSeries(...)
Formatting:
Html.Chart<type>(...) .NewPieChart(...).Format(PieChartFormat.Default)
Positioning:
Html.Chart<type>(...) .NewPieChart(...) .NewPieChart(...) .PositionAllCharts(ChartPosition.LeftToRight) .PositionAllLegends(LegendPosition.Bottom)
If I have time and inspiration, I'll try to continue with this idea.
The hard part here is the fluent interface, as it's implementation get's quite complex down the line, but the interface itself must remain simple.
0 comments:
Post a Comment