The crosshairdisplay does not abbreviate the values which are taken implicitly because I have disabled the y-Axis Abbreviation. I tried abbreviating the value explicitly so that the issue will not occur but crosshairdisplay sometimes shows values which are not present in the data. So, I cannot abbreviate the values which are implicitly taken by the crosshairdisplay. Is there anyway that I can abbreviate the value for crosshairdisplay annotation or Can I only show values on crosshair for the point which are present in the data.
HTML:-
<igx-financial-chart [dataSource]="chartDataSource" finalValueAnnotationsVisible="true" [finalValueAnnotationsPrecision]="finalValueAnnotationsPrecision" [yAxisFormatLabel]="formatY.bind(this)" yAxisAbbreviateLargeNumbers="false" [crosshairsDisplayMode]="Both" [crosshairsAnnotationEnabled]="true" [unknownValuePlotting]="DontPlot" > </igx-financial-chart>
TS:-
constructor(private percentPipe: PercentPipe, private decimalPipe: DecimalPipe) {} formatY(value, precision= 1) { return this.percentPipe.transform(value, this.pipeString); }
It's pressing issue and need assistance as soon as possible.
Hello Sandeep,
I have been investigating into the behavior you are seeing, and I have a couple of recommendations for you on this matter.
My best recommendation is to set the crosshairsAnnotationYAxisPrecision property on the IgxFinancialChart. This property works in the same way as the finalValueAnnotationsPrecision property that it appears you are already using.
Additionally, if you only want the crosshairs in the IgxFinancialChart to go between your data points, you can set the crosshairsSnapToData property to true.
Please let me know if you have any other questions or concerns on this matter.
I tried the solution which you have suggested but the problem is still not fixed. Could you please provide me with another working solution such that the issue can be fixed as soon as possible?
I am attaching a sample project to demonstrate the igx-financial-chart working with the crosshairsAnnotationYAxisPrecision property as this is working normally on my end.
8688.overview.zip