Hi,
i want to use the
igx-data-annotation-slice-layerin a igx-data-chart what actually works but now I want to customize certain things a little bit but I fail.this is the layer code
<igx-data-annotation-slice-layer [dataSource]="annotationSliceStockSplitData" [targetAxis]="mainXNumAxis" [brush]="'black'" opacity="0.5" annotationTextColor="transparent" annotationLabelMemberPath="label" annotationValueMemberPath="value" annotationBackground="transparent" annotationBorderColor="transparent" overlayTextMemberPath="label" overlayTextAngle="90" overlayTextStyle="bold 20pt Arial" overlayTextVerticalMargin="0" overlayTextHorizontalMargin="0" overlayTextLocation="OutsideTopRight"></igx-data-annotation-slice-layer>
First of all, can I make the line straight and not dotted.I know there exists igOverlays but they do not have annotations.Also I struggle with the following properties:
overlayTextAngle="90"overlayTextStyle="bold 20pt Arial"I would assume the angle is applied to the dotted line vertically with 90but the angle seems to be moving around that line.
I also want to style the text in size and font but this does not work either.It remains all the time.You can see the attached immage.Hope you can help me.Ty
Hello,
Thank you for your post. You can use dashArray to "Solid" to have straight line instead of dotted line.
And you are right 'overlayTextAngle' and 'overlayTextStyle' properties are not working as expected , its due to annotation slice layer feature is in preview state, its possible that these properties are not supporting right now. But i have logged the bug to get those working.
Logged the bug with id 41595 ,Going to create a private case to linked with the bug.
Thank you, let me know if you have further question or concern.
Thanks for the answer,
so leaving the preview stage will become a full featured slice layer?
What is the time schedule for this?
Is it possible to achieve this with the annotation part of the layer?
Can you give an example on how the dashed array works?
I could not find such a property in the docs for the igx slice layer
or is it in the datasource part?
BR,
Hendrik
Hello Hendrik,
Preview stage is that we released the feature and we are still actively working on it , improving it, and fixing the bugs on higher priorities. As i have informed that i already logged the bug for the feature not working , i will confirm once again when i hear any thing back from the development team.
For straight lines you just need to set dashArray to "Solid" like this:
Ty that works