I’m trying to save colors for a stacked line chart. It keeps defaulting back to its original blue. I tried saving the color to purple under: "Series" and then "Series Setting" -> "Color." I change it to purple or red but it wont' work. It changed successfully for just basic line charts but fails on stacked ones.
Steps: Change the color, hit save.
Immediately after saving, it just reverts back to the default blue.
We found a new bug for all our charts. This bug only happens with the latest 6.7.1 version.
The custom colors are not getting saved when we change them on the chart series.
Our developers will do their best to build a fix as soon as possible.
It should be finished very soon, but we don't have an exact ETA, so please keep a lookout on our wpDataTables changeLog.
It will be stated there during updates which bug fixes have been implemented at each update.
Our developers made a temporary fix, which you can apply right now, if you wish. Find this PHP file via FTP ( or your hosting file manager), on your WP hosting server, in the WordPress folder : ..\wp-content\plugins\wpdatatables\source\class.wpdatachart.php Around line 1297, find this function :
public function defineSeries()
{
if (!empty($this->getUserDefinedSeriesData())) {
$seriesIndex = 0;
foreach ($this->_user_defined_series_data as $series_data) {
if (!empty($series_data['color']) || !empty($series_data['type']) || !empty($series_data['label'])) {
if (!empty($series_data['color'])) {
$this->_render_data['options']['series'][$seriesIndex] = array(
'color' => $series_data['color'],
);
}
if (!empty($series_data['label'])) {
$this->_render_data['options']['series'][$seriesIndex] = array(
'label' => $series_data['label']
);
}
}
$seriesIndex++;
}
}
}
Replace it with this :
public function defineSeries()
{
if (!empty($this->getUserDefinedSeriesData())) {
$seriesIndex = 0;
foreach ($this->_user_defined_series_data as $series_data) {
if (!empty($series_data['color']) || !empty($series_data['type']) || !empty($series_data['label'])) {
if (!empty($series_data['color'])) {
$this->_render_data['options']['series'][$seriesIndex]['color'] = $series_data['color'];
}
if (!empty($series_data['label'])) {
$this->_render_data['options']['series'][$seriesIndex]['label'] = $series_data['label'];
}
}
$seriesIndex++;
}
}
}
Save the change, and check, this should fix the issue. Now all the charts should be able to save your custom color per series.
If you need us to edit this code for you, we will need the following access :
Please provide me a temporary WP-admin (administrator) user for your website where this happens,
as well as FTP credentials and access to the database ( either link with credentials for PHPmyAdmin, or access to Hosting Panel),
so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue.
We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties.
You can write credentials here just check PRIVATE Reply so nobody can see them except us.
I’m trying to save colors for a stacked line chart. It keeps defaulting back to its original blue. I tried saving the color to purple under: "Series" and then "Series Setting" -> "Color." I change it to purple or red but it wont' work. It changed successfully for just basic line charts but fails on stacked ones.
Steps: Change the color, hit save.
Immediately after saving, it just reverts back to the default blue.
Hello,
We found a new bug for all our charts.
This bug only happens with the latest 6.7.1 version.
The custom colors are not getting saved when we change them on the chart series.
Our developers will do their best to build a fix as soon as possible.
It should be finished very soon, but we don't have an exact ETA, so please keep a lookout on our wpDataTables changeLog.
It will be stated there during updates which bug fixes have been implemented at each update.
Our developers made a temporary fix, which you can apply right now, if you wish.
Find this PHP file via FTP ( or your hosting file manager), on your WP hosting server, in the WordPress folder :
..\wp-content\plugins\wpdatatables\source\class.wpdatachart.php
Around line 1297, find this function :
Replace it with this :
Save the change, and check, this should fix the issue. Now all the charts should be able to save your custom color per series.
If you need us to edit this code for you, we will need the following access :
Please provide me a temporary WP-admin (administrator) user for your website where this happens,
as well as FTP credentials and access to the database ( either link with credentials for PHPmyAdmin, or access to Hosting Panel),
so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue.
We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties.
You can write credentials here just check PRIVATE Reply so nobody can see them except us.
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