Hi,
We face following problems how to fix that like showing in sample snapshot?
Hi Elinder.
Please find anwers to your questions below:
1.How to place legend inside the chart, currently it is in the left side above the chart?
You can use css to place the element wherever you like, for example:
style="left: 90px; top: 60px; position: absolute;"/>
2.How to left align yaxis label values, currently all values are right aligned?
There is the labelHorizontalAlignment property for axes to achieve that:
{ name: "PopulationAxis", type: "numericY", labelHorizontalAlignment: "left", }
3.Two decimals tooltip values format with comma's like (5,000.00 and 20,000.00) with datetime format?
I didn't understand your query here, could you please clarify ? Do you want to display a numeric value like 2.000 with a comma as a separator ? What about the datetime format ?
4.How to set HorizontalCrosshairVisibility = false ?
You can use the horizontalLineVisibility property of a series object. It takes values "visible" or "collapsed" and collapsed hides the relevant line:
{ type: "crosshairLayer", name: "crosshairLayer", targetSeries: "1995Population", horizontalLineVisibility: "collapsed" }
5.Small sample application is really very helpful for us.
You can find a sample demonstrating how to use the above mentioned properties. I hope it helps.
Hi Hristo,
Thank you so much for quick response, Our mostly problems are solved only few minor issues,
Hi Elinder,
I am quite surprised this did not work since my sample uses the CDN references. Please try to extract the file and not open it directly from the archived file. There is an not necessary reference to infragistics.excel.js, it results in the "object does not support "getBox" method", so you can remove this reference. Please try to open the sample with another browser, too. I believe that once it ran you will see how to use these properties.
Please let me know if you still fail to run the samle so wen think of how to proceed with this. Looking forward to hearing from you.
Yes its working now after commented the infragistics.excel.js reference.
But in our real application we didn't use any infragistics.excel.js reference than why we face message Failed to Open in debugger window? Further details please see my previous post.
Can you fix my other points that i was highlighted in my previous post ?
Thanks
I am sorry to hear you did not manage yet to run my sample - it is a simple html page and resources are loaded from cdn's, which means everything should be fine on another machine. Did you try to open it after extracting and trying with different browsers ? Anyway, the suggested should work for you but since you are not able to see my sample I suggest that you send me yours, where I can apply those and demonstrate. If this is possible, then please send me your project or sample. Otherwise please let me know so we can think how to proceed further.
Thank you so much for your quick response, I create my sample application
Some times we face following error, When this error appeared chart is not displayed, we need to close the application and re-visit the page again. How to fix that error?
Please also fix that issue in sample application.
I was not able to reproduce error 1) using IE 11. Which verson do you use ?
I updated the sample to meet your other requirements - the legend to stay at the top right corner and formatting the values in the tooltip. Actually formatting the values in the tooltip is not real formatting, it just changes the innerText of the element that holds those. Please see the attached modified sample and let me know if it meets your requirements.
Thank you for your response, Please see attached snapshot for browser version.
Thank you for your feedback. Here is how to:
1) we need to round values of Open, High, Low, Close upto two decimals
Sorry I didn't understand you correctly initially. To round a number to two decimals you can use Math.round:
Math.round(x * 100) / 100;
2) volume value with a comma as a separator
you can achieve that using native javascript .toLocaleString();
3) when you stay at a point for a few seconds month change automatically, and tooltip is not showing of the visited points when we re-visit t the point
I am currently looking into this and will update you with my findings
4) when we fix the position of legend div than its create problem. You can check it by reduce the browser window height and width.
Please specify how do you want the legend to behave in such scenarios - for example minimining the browser width. Currently the legend stays on the same place, but appears on top of the dropdowns that are otherwise left aligned.
Please see the updated sample that fixes 1) and 2) using the above suggested,