• Resolved adamharrispub

    (@adamharrispub)


    Hi there,

    Novice chart user here. I’m trying to add the euro symbol (€) in front of the values in a column chart. I’ve successfully added the symbol to the y axis (see code below). Is it possible to add it to the values that appear above the column?

    /**
     * Theme Name: euros
     */
    
    return array(
    	'yAxis' => array(
    		'labels' => array(
    			'format' => '€{value}',
    		),
    	),
    );
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author methnen

    (@methnen)

    It’s completely possible, how you do it depends on the charting library.

    Highcharts has a prefix and suffix setting that you can use for this.

    And the plugin will try to do it for you if the data has them in there.

    With Chart.js its not as straightforward. I’ve made some move towards implementing something that would sort of replicate the Highcharts behavior but it hasn’t made it into the release version yet.

    My recommendation in the meantime is to label the relevant axis so it’s clear the Units or Currency involved in values.

    Thread Starter adamharrispub

    (@adamharrispub)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding € to chart values’ is closed to new replies.