Jump to content

How to customize Unichart ?


mhmda

Recommended Posts

  • 3 weeks later...
  • 8 months later...
  • 11 months later...
I am trying to change the colors and I did not get it yet...!

 

Hi,

 

Try:

UniChart1 -> ClientEvents -> UniEvents -> [Ext.chart.Chart [chart]] add function chart.beforeInit

function chart.beforeInit(sender, config)
{
  sender.themeAttrs.seriesThemes = [{fill: '#ff4565'}, {fill: 'green'}, {fill: 'yellow'}];
  sender.themeAttrs.colors = ['#ff4565', 'green', 'yellow']
}

Best regards.

Link to comment
Share on other sites

  • 6 months later...

Hi,

 

Try:

UniChart1 -> ClientEvents -> UniEvents -> [Ext.chart.Chart [chart]] add function chart.beforeInit

function chart.beforeInit(sender, config)
{
  sender.themeAttrs.seriesThemes = [{fill: '#ff4565'}, {fill: 'green'}, {fill: 'yellow'}];
  sender.themeAttrs.colors = ['#ff4565', 'green', 'yellow']
}

Best regards.

Hi.

I try your code in C++ Builder XE7 and I got error. Where my mistake?

Thank you.

post-32-0-77450000-1428404865_thumb.jpg

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...