Jump to content
We've recently updated our Privacy Statement, available here ×
  • Highcharts marker layering - how to configure overlapping of multiple series


    stasp
    • Features: Charts Version: v6.5, v6.4, v6.4.3, v6.4.2, v6.4.0, v6.3, v6.3.1, v6.3.0, v6.2, v6.2.1, v6.2.0, v6.1, v6.1.1, v6.1.0, v6.0 Product: JasperReports® Library

    Use case

    In a multi series HTML5 chart (aka combination chart) you sometimes want to have control over which markers appear on top. In one particular scenario user had a Bar+Scatter combination chart. The scatter markers were drawn behind the bars when overlapped, and we needed to have the scatter points displayed on top. 


    Solution

    The layer controls is achievable using Highcharts property called zIndex

    https://api.highcharts.com/highcharts/series.bar.zIndex 

    You will have to assign a zIndex property to each or your chart Measures as a SeriesProperty. Like this: 

    zindex.png.f1991bbeed93468128ec7ed68787c279.png

    The higher the value of the zIndex, the closer your Measure is to the top. By default the Measures are displayed in order of declaration. 

    zindex.png.8af04e4270a2d1f5a4c161918b653335.png


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...