Okay
  Public Ticket #3744947
Can't save colors
Closed

Comments

  • Sara started the conversation

    Hello support team,

    We just purchased the WP Data Tables Plugin. In general it works fine, but for some reason it doesn't save any color changes to the series. I tried twice.

    It's the Google engine and a line chart.

    Second question (or feature request):
    Is there a way to directly access the later setting steps of existing charts? It's really annoying to have to go through all steps just to get to formatting & preview.
    And can I save a chart without leaving the editing mode? Again, very annoying to have to reopen the chart and go through all steps again, just because I want to save in between.

    Regards,
    Sara

  •  1,846
    Miloš replied

    Hi Sara,

    1. In regards to custom series colour not being saved:

      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 isolated the bug, and they'll add it to their queue for fixing.

       They 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. We have multiple users who confirmed this works for them - and our QA Team tested it on our Sites.
      Here are the steps :

      Find this PHP file via FTP ( or your hosting file manager), on your WP hosting server, in this path: 

      ..\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 send it as a PRIVATE reply for security reasons, so nobody can see them except us.

    2. Is there a way to directly access the later setting steps of existing charts? It's really annoying to have to go through all steps just to get to formatting & preview.

      Unfortunately, there is no way at this time to just pick one step and go to it in the Chart Wizard;
      Yes, any time you need to change anything on a chart - you need to go back to the first step, then go through all of them to get to the step you need to change.

      It does memorize all the settings though, so you can quickly check if everything is correct and keep clicking "next" button at the bottom right corner, but that being said, we can completely understand how this can be very annoying when you just wish to change one little option on it, especially at the last step.

      We do have a couple of users who want an improvement on that interface for the chart steps, etc;  so if you wish to affect this development speed :

      Please feel free to search on our suggestions page

       to see if someone may be already suggested this feature. If you can't see it, feel free to add your suggestion there,  and as more people vote, the feature will move higher on the priority list.

      You can certainly follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;

      and our newsletter, so you're informed about new features, bug fixes, freebies, etc.

       

    3. And can I save a chart without leaving the editing mode? Again, very annoying to have to reopen the chart and go through all steps again, just because I want to save in between.

      - Unfortunately, that is also not possible at this time. Any time you change any option, you need to go to the last step and hit "Save chart".
       Then if you go "previous" step, we currently recommend against going any 'previous step' - to make sure to avoid issues, it is best to reload/go back to the start of this chart wizard and double-check all the settings/options for it by hitting "Next" button and "Save chart" again.

      I can honestly say, we completely understand this can be annoying, as mentioned above, so you can affect this improvement/development speed if you upvote it, or if you can't find the request from other users - you can add your own.
      Our QA Team follows all requests closely, so if there are any 'same requests', we merge them together in the same developer task.

      Let me know if you have any additional questions.

    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 | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Sara replied

    Hello Miloš,

    Thank you very much for the detailed reply.

    I will try out the code fix you provided and I will add my vote to the interface improvement request.

    Regards,
    Sara

  •  1,846
    Miloš replied

    Hi Sara,

    You're welcome.

    You can try this code edit and it should be fixed - so far, we have a number of users and they all reported success.

    If you need us to edit the code for you, you can send me the required access as per previous reply and we can do it remotely.
    So let me know how it goes and if you encounter any issue along the way.


    2. In regards to the 'previous/back/choosing a specific step' in the Chart Wizard - thank you for this feedback and the development suggestion - that will speed up the process and when others vote, our managers will closely follow it to handle all the priority tasks for the devs.

    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 | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Sara replied

    Hi Miloš

    The code snippet worked fine, thank you.

    You can close this issue. :)

    Regards,
    Sara

  •  1,846
    Miloš replied

    Hi Sara,

    I am delighted to hear that this has been resolved. Thank you for letting us know.
    Anything else that we could assist with, please don't hesitate to create new tickets.

    Have a great day! :)

     

     

     

    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 | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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