Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Highcharts allows for the tick position to be changed for categories axises.
This is a request to add that functionality to Charts.
Comment | File | Size | Author |
---|---|---|---|
#2 | Screen Shot 2018-02-20 at 12.20.44.png | 15.05 KB | John Cook |
#2 | Screen Shot 2018-02-20 at 12.20.17.png | 12.83 KB | John Cook |
#2 | 2946092-tick_position-2.patch | 1.34 KB | John Cook |
Comments
Comment #2
John Cook CreditAttribution: John Cook at Creode commentedI created a patch to allow use of
tickmarkPlacement
option of Highcharts. I've applied it to both X and Y axises, but will need #2946078: Add Y-Axis Categories for it to work with the Y axis.I added
'xaxis_tickmark_placement' => 'on'
to the settings of the example chart for testing.Before:
After:
Comment #3
John Cook CreditAttribution: John Cook at Creode commentedComment #4
andileco CreditAttribution: andileco at JSI Research & Training Institute, Inc. (JSI) commentedHey @John Cook, I like all of these related patches that you made, but I'm trying to keep the core Charts module and its sub-modules as separate as possible. Would you mind thinking about how sub-modules could receive separate configuration options (including through Views)? It's something that I have been wanting to figure out, but have been distracted by a lot of other bugs and feature improvements that will help me get to a release.
Please note that the latest -dev is substantially different than from when theses were made.
Comment #5
andileco CreditAttribution: andileco at JSI Research & Training Institute, Inc. (JSI) commentedHi @John Cook,
The latest -dev now has an override feature, which is being tracked here: https://www.drupal.org/project/charts/issues/2945629.
How to set this up is described here: https://cgit.drupalcode.org/charts/tree/src/Plugin/override/ChartOverrid...
Can you test this out and see if it works for your issues related to the y-axis?
Comment #7
andileco CreditAttribution: andileco at JSI Research & Training Institute, Inc. (JSI) commented