Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there any example of smoothCustomBullets with AmStockCharts? #18

Open
MuhammadOmerKhan opened this issue Apr 24, 2017 · 1 comment
Open

Comments

@MuhammadOmerKhan
Copy link

I have successfully implemented this feature in AmCharts but it's not working in AmStockCharts, can I see any example to implement this?
Is there any example of smoothCustomBullets with AmStockCharts?

I am adding smoothCustomBullets object to StockChart first panel.

var smoothCustomBullets = {
"borderRadius": "auto",
"fillAlpha": 0,
"fillColor": undefined,
"borderAlpha": 0,
"borderColor": undefined,
"borderThickness": undefined,
"borderLinejoin": undefined,
"borderLinecap": undefined,
"borderDasharray": undefined,
"positiveOffset": 0,
"negativeOffset": 0
}
chart.panels[0].smoothCustomBullets = smoothCustomBullets;
chart.panels[0].stockGraphs[0].customBulletField = "customBullet";

@martynasma
Copy link
Collaborator

Here's an example:

https://codepen.io/team/amcharts/pen/dfaf7c57743bebb9721ca63056843296

You have correctly assumed that smoothCustomBullets should go into panel's config.

I'm not entirely sure why your code does not work. Please doublecheck if you are including the plugin js file, or if the above code is executed before chart.write()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants