How to specify a range of data when using HighChar

2019-06-03 17:22发布

I found this great tutorial on using HighCharts with , very useful but I couldn't find a related API letting me only specify a part of data in the table.

For example, in the case above (I added 2 cols to make it more easy to describe), what should I do if I only want to use HighCharts to display the data in a range (in the red dotted range)

Is there some parameter like datarange:{[0,0,4,4]} or even sometimes I only want to take care of some more complicated ranges (in the second image)

High Charts Table source with desired ranges to show

标签: highcharts
2条回答
不美不萌又怎样
2楼-- · 2019-06-03 17:59

According to documentation:

 * table : String|HTMLElement
 * A HTML table or the id of such to be parsed as input data. Related options ara startRow,
 * endRow, startColumn and endColumn to delimit what part of the table is used.

You can use startColumn/endColumn but data range is unforutnaltey not supported. You can request your suggestion in userVoice http://highcharts.uservoice.com/ system

http://jsfiddle.net/FYtnj/1/

查看更多
Root(大扎)
3楼-- · 2019-06-03 18:05

Short description of how data module works you can find in full version of that file.

As you can see you can setup startColumn/startRow and endColumn/endRow. Something like data range isn't supported.

There is columns/rows option, but it works in a different way: http://jsfiddle.net/Y53FZ/

查看更多
登录 后发表回答