Okay
  Public Ticket #964712
mixed charts
Closed

Comments

  •  2
    Hanspeter started the conversation

    Hi

    is it possible to create mixed charts like in pure HighCharts Templates available? I would like to create a chart with high and low temperature values in lines and rain values in column type per day on the same chart.

    best regards
    Hanspeter

  • [deleted] replied

    Hi Hanspeter Bossard,
    Thank you for your purchase.

    It is not possible out of the box but it can be accomplished with little custom coding. You can use wpDataChart  callback to create different chart types for different series. You can take a look usage and examples how to use wpDataChart callback on this link. If you need our assistance we can offer you our paid customization service.

  •  2
    Hanspeter replied

    Hi Milos

    I could reproduce/apply the settings in the example. I tryed to adjust/adopt the syntax available at highcharts documentation. For the series and their type however I'm still struggling. Do you have any code snippets available, showing the syntax of changing/using/mixxing different types of charts?

    best regards
    Hanspeter

  • [deleted] replied

    Hi Hanspeter Bossard,

    This is an example for Highcharts, but you have to modify it by your needs. In this example first serie is set to column chart type and second one to spline chart type.

    <script type="text/javascript">
    jQuery(window).load(function(){
    if( typeof wpDataChartsCallbacks == 'undefined' ){ wpDataChartsCallbacks = {}; }
    wpDataChartsCallbacks[1] = function(obj){
      obj.options.series[0].type = 'column',
      obj.options.series[1].type = 'spline',
    }
    });
    </script>


  •  2
    Hanspeter replied

    Thanks so much,

    I got it working including specific tooltips

    best regards
    Hanspeter

  • [deleted] replied

    Hi Hanspeter Bossard,

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