I had made small modification in the Chart Views Module as well as Chart API to allow a user to integrate the Chart Axes and Gridlines as well as append Value Range Markers and Custom Field Markers to their chart. This would not work for Pie charts as Axes are not allowed in them but it works pretty well and good for Bar and Line Charts. I have attached the patch for it.
There were a few bugs in the Chart API which I had corrected.
I have also attached screenshots for the kind of chart developed from Chart Views, once the Axis Labels are appended.
There was an option to set Labels for a chart, but the output was not formatted, a reason being that the labels were set against the attribute 'chl' which works only for Pie Charts. For Bar charts, Line Charts, labels need to be set against 'chxl' needs to be set and this patch would help for the same. Moreover the formatting of the 'chl' labels is terrible when the option is checked and I would develop a patch soon to rectify it.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | axes-gridlines-1206306-2.patch | 18.01 KB | maulik.kamdar |
| #1 | axes-gridlines-chart-views-1206306-1.patch | 17.52 KB | 13rac1 |
| Horizontal Bar Chart.png | 16.51 KB | maulik.kamdar | |
| Grouped Vertical Chart.png | 20.02 KB | maulik.kamdar | |
| axes-gridlines-chart-views.patch | 17.68 KB | maulik.kamdar |
Comments
Comment #1
13rac1 commentedRemoved extra white space, otherwise applies cleanly. Settings are available and seem to work correctly.
Comment #2
maulik.kamdar commentedHello,
I had modified the patch a little for a cleaner Settings form. The current form includes a lot of fieldsets and I realized I can carry out the same functionality using the #dependency attribute for the fields.
Comment #3
13rac1 commentedErrors occur while applying this patch. Can you correct?
Comment #4
BenK commentedSubscribing
Comment #5
maulik.kamdar commentedA combined patch #1285554: Combined Patch for Chart Views Features has been written for the new Views Features, which also includes the integration of Gridlines and Axis Labels.
This new patch however can only be applied to a new temporary branch named 7.x-1.x-mk.
To clone:
git clone --branch 7.x-1.x-mk http://git.drupal.org/project/chart.git
Comment #6
Pierre.Vriens commentedComment #7
Pierre.Vriens commented