Highcharts allows for the tick position to be changed for categories axises.

This is a request to add that functionality to Charts.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

John Cook created an issue. See original summary.

John Cook’s picture

I 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:

John Cook’s picture

Status: Active » Needs review
andileco’s picture

Status: Needs review » Needs work

Hey @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.

andileco’s picture

Hi @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?

  • andileco committed e17055f on 8.x-3.x authored by John Cook
    Issue #2946092 by John Cook, andileco: Add tick position for categorised...
andileco’s picture

Status: Needs work » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.