Have now designed bar charts and they look good. Now I've made the background gray and want to change the font color for the bar chart. How can I do that ?
- Could you maybe create a screenshot, and if you can highlight which font color do you need?
For example, maybe for the data labels, like on this screenshot?
- Or maybe on the tooltip?
The only colour we can change with the plugin's built-in functions is this text colour that I changed to red.
If the option to change the colour you need doesn't exist in the wizard, you will need to use wpDataCharts callbacks.
Every chart exposes several options that customize its look and feel. Charts usually support custom options appropriate to that visualization. wpDataChart callbacks allow adding options that are available in Google Charts API, Highcharts API, and Chart.js API.
All necessary resources are available in charts engines API (depends on which one you use). Every engine has a different approach to chart settings. In wpDataChart callbacks, you have to adopt those settings to the wpDataChart object (you can take a look at examples for each engine in our documentation, and also in the Support help center). A huge number of examples for any area of programming can be found on stackoverflow.com (typing your problem in google and at the end add "site: stackoverflow.com" and Google will search only that website). Also, a lot of examples of charts, chart settings, and customization can be found on jsffidle.net (typing in google for example "line chart highcharts jsffidle")
Please note that using hooks or wpDataTable and wpDataChart callbacks requires a certain level of programming skills and included support refers only to advice.
Have now designed bar charts and they look good. Now I've made the background gray and want to change the font color for the bar chart. How can I do that ?
Hi, René Stäblein
Thanks for reaching out to us.
- Could you maybe create a screenshot, and if you can highlight which font color do you need?
For example, maybe for the data labels, like on this screenshot?
- Or maybe on the tooltip?
The only colour we can change with the plugin's built-in functions is this text colour that I changed to red.
If the option to change the colour you need doesn't exist in the wizard, you will need to use wpDataCharts callbacks.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hello,
thank you for your answer. I need to change the color in Tooltip like the second screenshot.
King regards Rene
This i need the Text in white because the background is black
Hi, Rene
- The only chart engine that provides a built-in setting to change this colour is Apex charts.
If you use this engine, here is the setting to change the chart text colour.
Other chart engines don't have that feature.
Let me know if that is good enough for your project, hopefully.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables