Okay
  Public Ticket #905433
wpDataChartsCallback for ALL charts, not a specific chart ID
Closed

Comments

  •  2
    Dave started the conversation

    I'm trying to create a custom theme for all of my Highcharts charts. Ideally, I'd like to implement something like this, but that didn't seem to work.

    So now I'm trying to use a wpDataChartsCallback that you explain in your documentation here. My question with wpDataChartsCallback is... is there a way to apply the options to ALL charts, and not specify a particular chart ID?

    Or is there an easier way to use implement a custom Highcharts theme?

    Thanks!
    Dave

  • [deleted] replied

    Hi Dave,

    It is not possible to apply option with wpDataChartsCallback to all charts. You can modify ../wp-content/plugins/wpdatatables/assets/js/wpdatatables/wpdatatables_highcharts.js file to create your custom theme.

    Please note that if you are editing wpdatatables_highcharts.js you have to uncheck Use minified wpDataTables Javascript on wpDataTables settings page.

  •  2
    Dave replied

    That worked like a charm, Milos. Thank you :-)

    Feel free to close this ticket.

  • [deleted] replied

    Hi Dave,

    You are welcome. We'd greatly appreciate it if you could take a minute and leave a review on CodeCanyon on this link. Thanks!