Support » Plugin: Easy Charts » Colours bars

  • Resolved franprz

    (@franprz)


    It´s posible change the value of colors predefined (plain, android, etc)? I see u put a code for “custom colors” of one char id, but is posible change color for all bars?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same question. COuld you please indicate where this can be changed?

    Plugin Author Kiran Potphode

    (@kiranpotphode)

    Hi,

    You can achieve this by using following code example.

    function easy_charts_get_chart_configurations_callback( $ec_chart_option, $chart_id, $meta_key  ){
    
    	if( $meta_key == 'graph' ){
    
    		$ec_chart_option['custompalette'] = array(
    				'#000000',
    				'rgba(0,0,0,0.6)',
    				'#dedede',
    				'#0a0a0a',
    		);
    
    	}
    
    	return $ec_chart_option;
    }
    
    add_filter( 'easy_charts_get_chart_configurations', 'easy_charts_get_chart_configurations_callback', 10, 3 );

    You can put these code snippets in functions.php file of the active theme.

    Hope this is will do what you need. Feel free to ask if you need any help with this.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Colours bars’ is closed to new replies.