|
Default fonts and color palettes |
Posted by Naveen on Oct-27-2016 22:20 |
|
Hi Peter,
I'm using ChartDirector to create a number of charts that will use the same color schemes and fonts. Is there an api to set this globally, or do I need to set it up every time I create a BaseChart subclass? Thanks. |
Re: Default fonts and color palettes |
Posted by System Administrator on Oct-28-2016 02:16 |
|
Hi Naveen,
Unluckily, there is no API that can affect the fonts and colors of all current and future charts. So for your case, when you create the chart object, you would need to configure the default fonts and palettes. If the code is the same for every chart, you can set them up in a function that you may call in your code.
Regards
Peter Kwan |
Re: Default fonts and color palettes |
Posted by Naveen on Oct-28-2016 02:20 |
|
Would it be possible to add that api to the top level module (pychartdir in my case)? |
Re: Default fonts and color palettes |
Posted by Peter Kwan on Oct-28-2016 14:31 |
|
Hi Naveen,
You can always add the API if you need it now. Basically, you may override the XYChart constructor (or any chart types you would like to use), so that it calls setFontTable and setColors to configure the default fonts and colors you would like to use.
Regards
Peter Kwan |
|