Comments 2Andrew Kenth started the conversationAugust 20, 2020 at 4:33pmIs there a way to adjust the font size in High Charts axes text? 2,572Aleksandar repliedAugust 21, 2020 at 12:24pmHello AndrewI suppose you could use one of "fontSize" Highcharts API in a wpDataCharts callback. I never tested it, so I don't know which one you would need to use.Kind Regards, Aleksandar Vuković[email protected] Rate my support 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 2Andrew Kenth repliedSeptember 11, 2020 at 2:06pmHmm. I added this tot he page header but it does not seem to do anything. Any advice? <script type="text/javascript">jQuery(window).on('load', function() { if( typeof wpDataChartsCallbacks == 'undefined' ){ wpDataChartsCallbacks = {}; } wpDataChartsCallbacks[39] = function(obj) { obj.xAxis.labels.style.fontSize = '8px'; } }});</script> 2,572Aleksandar repliedSeptember 14, 2020 at 8:37amHi again AndrewI can't say for sure, as I haven't changed the font size of charts using the callbacks.Maybe you can try with something like this: <script type="text/javascript"> jQuery(window).on('load', function() { if( typeof wpDataChartsCallbacks == 'undefined' ){ wpDataChartsCallbacks = {}; } wpDataChartsCallbacks[39] = function(obj) { obj.options.xAxis[0] = { labels: { style: { fontSize: '20px' } } } } }); </script> Something like this can be achieved here, if you change: color: 'red' to: fontSize: '20px' So, it's a good place to look.Kind Regards, Aleksandar Vuković[email protected] Rate my support 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 Sign in to reply ...
Is there a way to adjust the font size in High Charts axes text?
Hello Andrew
I suppose you could use one of "fontSize" Highcharts API in a wpDataCharts callback.
I never tested it, so I don't know which one you would need to use.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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
Hmm. I added this tot he page header but it does not seem to do anything. Any advice?
<script type="text/javascript">
jQuery(window).on('load', function() {
if( typeof wpDataChartsCallbacks == 'undefined' ){ wpDataChartsCallbacks = {}; }
wpDataChartsCallbacks[39] = function(obj) {
obj.xAxis.labels.style.fontSize = '8px';
}
}
});
</script>
Hi again Andrew
I can't say for sure, as I haven't changed the font size of charts using the callbacks.
Maybe you can try with something like this:
Something like this can be achieved here, if you change:
to:
So, it's a good place to look.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
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