You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to draw shape with IChartWidgetApi, first vertical line with timestamp now and second verify line but both of them is same position.
#first vertical line
chart().createShape(
{ time: new Date().getTime() / 1000 },
{shape: 'vertical_line'}
);
#second vertical line
chart().createShape(
{ time: new Date().getTime() / 1000 + 60 },
{shape: 'vertical_line'}
);
Is there any other way to create a vertical line that can achieve my wishes, or if I do the above, how can I fix it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to draw shape with
IChartWidgetApi
, first vertical line with timestamp now and second verify line but both of them is same position.#first vertical line
chart().createShape(
{ time: new Date().getTime() / 1000 },
{shape: 'vertical_line'}
);
#second vertical line
chart().createShape(
{ time: new Date().getTime() / 1000 + 60 },
{shape: 'vertical_line'}
);
Is there any other way to create a vertical line that can achieve my wishes, or if I do the above, how can I fix it?
Beta Was this translation helpful? Give feedback.
All reactions