Skip to content

Z-index for Indicator plotline #57

Description

@anupai

I'm not sure, if there is already any solution for this. Issue i'm facing is, i'm unable to set Z-index for SMA or any other indicator graph. It is coming behind the candles.

chartStock.addIndicator({
              id: 'BoData',
              type: 'sma',
              styles: {
                  strokeWidth: 2,
                  stroke: 'red',
                  dashstyle: 'solid'
              },
              tooltip:{
                  pointFormat: '<span style="color: {point.color}; ">pointFormat SMA: </span> {point.y}<br>'
              },
              zIndex: 5
            }, true);

I tried this way, but it is not working.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions