Skip to Content
0
Former Member
Jun 02, 2015 at 03:44 PM

Sorting data by date in sapui5 charts

263 Views

Hello Friends,

i create a line chart that represent my data in function of date, and i want to sort my data by date beacause i get a graph not sorted by date , this is my code :

<viz:ui5.Line>

<viz:dataset>

<viz:ui5.data.FlattenedDataset data="{/entitySet}">

<viz:dimensions>

<viz:ui5.data.DimensionDefinition axis="1" name=" DATE" value="{date}">

</viz:ui5.data.DimensionDefinition>

</viz:dimensions>

<viz:measures>

<viz:ui5.data.MeasureDefinition name="value " value="{VALUE}">

</viz:ui5.data.MeasureDefinition>

</viz:measures>

</viz:ui5.data.FlattenedDataset>

</viz:dataset>

</viz:ui5.Line>

any help please 😊

Darine ,