javascript - Highcharts: limit number of markers -


i'm using highcharts show data series quite large number of points in small space, here's demo. when datapoint marker shown on every point graph cluttered , difficult read. can remove markers changing

    plotoptions: {         line: {             marker: {                 enabled: true             }           }     } 

to

    plotoptions: {         line: {             marker: {                 enabled: false             }           }     } 

but i'd in between these 2 extremes. there way specify maximum number of markers should displayed, e.g. 20. don't particularly care 20 points marked, marked points should chosen such markers evenly spaced.

afaik can disable markers per point have supply data objects, can problematic large quantities of points:

series: [{     data: [         { y: 29.9 },         { y: 71.5, marker: { enabled: false } },         { y: 106.4, marker: { enabled: false } },         { y: 129.2 }]     }] 

documentation here (see third item).


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -