set two Makers between two Interval and connect them with starigth line #1035
Unanswered
zeeshan-shabbir
asked this question in
Q&A
Replies: 1 comment 1 reply
-
As a workaround I came up with this, hope it helps: chart.addLineSeries({
color: <color>,
lineWidth: 1,
lineStyle: LineStyle.Solid,
lastValueVisible: false,
priceLineVisible: false,
crosshairMarkerVisible: false
}).setData([
{time: <time1>, value: <**sameValue**>},
{time: <time2>, value: <**sameValue**>}
]); If you need a second line above or below (as your screenshot), you will need to ADD this to the previous snippet: chart.addLineSeries({
color: <color>,
lineWidth: 1,
lineStyle: LineStyle.Solid,
lastValueVisible: false,
priceLineVisible: false,
crosshairMarkerVisible: false
}).setData([
{time: <time1>, value: <**anotherValue**>},
{time: <time2>, value: <**anotherValue**>}
]); Note that you can NOT just do the following: chart.addLineSeries({
color: <color>,
lineWidth: 1,
lineStyle: LineStyle.Solid,
lastValueVisible: false,
priceLineVisible: false,
crosshairMarkerVisible: false
}).setData([
{time: <time1>, value: <**sameValue**>},
{time: <time2>, value: <**sameValue**>}
{time: <time1>, value: <**anotherValue**>}, // ERROR: time1 already exists in the dataset
{time: <time2>, value: <**anotherValue**>} // ERROR: time2 already exists in the dataset
]); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi again,
i am working on this awsome libary. i want to known if that(i:e title ) possible in this libary . i seacrh this featuer in issues and discussion but didnt find relevant information.
Beta Was this translation helpful? Give feedback.
All reactions