How to show specific point to show specific information in HighCharts -


i new highcharts , working on cricket app in have display run rate per on , number of wickets in over. if there wicket(s) in specific on want show ball(s) point , on hover or click point show information player , bowler etc. want can view link crichq graphs want same think in crichq graphs, don't know how do.

please me out of issue.

you can use point marker settings indicate wickets fell. e.g. make different colour , size. http://api.highcharts.com/highcharts#series.data.marker

i process data follows:

var ausdata = [ { x:1, y:1 },                { x:2, y:24, out:{num:2,names:['john','doe']} },                { x:3, y:5 },                { x:4, y:8 },                { x:5, y:22 },                { x:6, y:11 } ]; (var p in ausdata) {     var point = ausdata[p];     if (point.out !== undefined) {         point.marker = {fillcolor:'red',radius:4*point.out.num};      } else {         point.marker = {radius:5};     } } 

this start basic info, , adds custom point markers depending on how wickets fill.

the other thing customise tooltip give names e.g.:

    tooltip: {         formatter: function () {             var text = 'over: ' + this.x +                 ' runs: ' + this.y;             if (this.point.out !== undefined) {                 text = text + '<br>out: ' + this.point.out.num;                 (var n in this.point.out.names) {                     text = text + ' ' + this.point.out.names[n];                 }             }             return text;         }     }, 

http://jsfiddle.net/d6fgwg14/


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -