I'm displaying multiple charts on a page and am trying to align all my titles to the left using this code inside wpdatatables_highcharts.js
this.options.title = { align: 'left', x: 70};
Which aligns it fine except it also resets all my existing titles to "Chart Title" - as per attached pic. I want to keep the existing titles and simply align them to the left. Any hints as how I can achieve this?
In wpDataTables 1.7 there will be much more options for chart customization. You can take a look at new features at this link. If you are interested I can send you version 1.7 Beta so you can try new features.
First of all, kudos on a great plugin!
I'm displaying multiple charts on a page and am trying to align all my titles to the left using this code inside wpdatatables_highcharts.js
this.options.title = { align: 'left', x: 70};
Which aligns it fine except it also resets all my existing titles to "Chart Title" - as per attached pic. I want to keep the existing titles and simply align them to the left. Any hints as how I can achieve this?
Cheers.
Hi Alan,
Thank you for your purchase.
Like that you will overwrite all title properties. You can try like this:
this.options.title.align = 'left';
this.options.title.x = 70;
In wpDataTables 1.7 there will be much more options for chart customization. You can take a look at new features at this link. If you are interested I can send you version 1.7 Beta so you can try new features.
Bravo Milos,
That worked perfectly and now I know why some of my other attempts at customisation failed. Thank you for clearing up a few code mysteries for me.
Kind regards
Alan K.