Skip to Content
0

VizFrame: dataPointStyle properties aren't applied to data

Jan 18, 2017 at 03:52 PM

363

avatar image
Former Member

I'm working with VizFrame (sap.viz.ui5.controls.VizFrame) of SAPUI5 and I'm trying to get a line of a time series line chart (timeseries_line) dashed.

My dataset (shorted):

<viz:dataset><viz.data:measures><viz.data:MeasureDefinitionname="Threshold"value="{THRESHOLD}"/></viz.data:measures></viz:dataset>

My feeds (shorted):

<viz:feeds><viz.feeds:FeedItemuid="valueAxis"type="Measure"values="Threshold"/></viz:feeds>

And my VizProperties:

                    plotArea :{
                      dataPointStyleMode:"update",
                      dataPointStyle :{
                          rules:[{
                           dataContext:{"THRESHOLD":"*"},
                           properties:{
                                color:"#EACF5E",
                                lineType:"dash"},
                            displayName:"Threshold",
                            dataName:{"THRESHOLD":"Threshold"}}]}}

The problem is that the threshold line isn't dashed or colored after calling setVizProperties with the plotArea of above. But it adds Threshold with dashed line to the legend. What's wrong here?

Hint: I also tried "Threshold": "*" as data context. The dataPointStyleMode of override also won't work (then it's black and solid).

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member
Dec 26, 2017 at 09:52 AM
0

"Threshold": "*" should work if "Threshold" is a measure. It would not work if "Threshold" is the Date dimension.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Sorry try add a square bracket outside the curly bracket like below:

..."dataContext": [{"Threshold": "*"}]...

0