jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

diamondpin for flag series

i know i have asked before about this..

viewtopic.php?f=12&t=37670&p=131858&hil ... in#p131858


but with new update.. this is not working and i need to add different shape other than circle and square to the flag series. how can i do that ?

Thanks
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: diamondpin for flag series

Hi,
Thanks for you reaching us.

You mean this demo has stopped working?

I suspect that the core has changed, I added one parameter that was missing from the console and the demo works.
Let me know if you wanted such a solution.

Live demo:
http://jsfiddle.net/BlackLabel/fh42L71z/

I'm waiting for news from you.
Best regards.
Sebastian Hajdus
Highcharts Developer
jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

Re: diamondpin for flag series

Thank for response.. demo is working now. but renderer is not working correctly, with latest update.. thats what i meant.. like series and shapes not drawing line connecting to bottom and it is not drawing shapes like circle or square or diamond..

this has happened with latest update

Hope this helps.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: diamondpin for flag series

Hi,

Sorry, I didn't write the correct demo, take look at this.
http://jsfiddle.net/BlackLabel/hrz45v27/

Regards.
Sebastian Hajdus
Highcharts Developer
jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

Re: diamondpin for flag series

Thanks again for reply.. now i can plot using function/demo provided but it does not draw lines on bottom plot like i said before.. here are the two screenshots..

one with new version of highstock.js which does not have diamondpin
other screenshot -- with the function but not drawing line.
Attachments
functionSample.png
functionSample.png (52.92 KiB) Viewed 462 times
highstockExample.png
highstockExample.png (52.11 KiB) Viewed 462 times
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: diamondpin for flag series

Hi,

If this line is a plotLines, I think it shouldn't dissapear.
I need to see your current chart configuration, could you simplify your example to jsfiddle?

Also, you can work on previous versions of highstoock.

Live demo:
http://jsfiddle.net/BlackLabel/q5rystjg/

API References:
https://api.highcharts.com/highstock/yAxis.plotLines

Feel free to ask any questions.
Best regards.
Sebastian Hajdus
Highcharts Developer
jahnvi25
Posts: 284
Joined: Thu Oct 04, 2012 12:16 pm

Re: diamondpin for flag series

here is sample with your code.. when you run .. you will see that lines from B to bottom of the chart (green line) is missing.. but as soon as i comment your code which on top.. line re-appear

https://jsfiddle.net/Lqrd04fg/1/
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: diamondpin for flag series

Hi,

I have some news, You don't need wrapper for achieve diamond flag but without connector.
There seems to be no such functionality, you can write about it as a future request https://github.com/highcharts/highchart ... new/choose.

According to documentation available options for the pin.
The shape of the marker. Can be one of "flag", "circlepin", "squarepin", or an image of the format url(/path-to-image.jpg). Individual shapes can also be set for each point.

API References:
https://api.highcharts.com/highstock/series.flags.shape

Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Stock”