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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...