Skip to Content
1
Jun 16, 2016 at 09:47 AM

Multi Line Chart using VizFrame

1431 Views

Hi,

I'm looking for a solution to create a multi line chart (with two dimensions/axises) like in the attached screenshot using a VizFrame (sap.viz.ui5.controls.VizFrame , XML View)

This example in the screenshot uses the deprecated controls from the package sap.viz.ui5 .

The XML code for the example is:

<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:oviz="sap.viz.ui5" xmlns:vtypes="sap.viz.ui5.types"
  xmlns:vdata="sap.viz.ui5.data" xmlns:vizc="sap.viz.ui5.controls">
  <oviz:Line xmlns="sap.viz.ui5" id="idChartParkRight" width="100%" height="250px" >
  <title>
  <vtypes:Title text="Asset Production weekly" visible="true"/>
  </title>
  <plotArea>
  </plotArea>
  <dataset>
  <FlattenedDataset xmlns="sap.viz.ui5.data" data="{path: '/productionData', sorter : {
            path : 'WEEK' }, parameters: {select:'WEEK, WTGID, DisplayProduction' }}">
  <dimensions>
  <DimensionDefinition axis="1" name="Week" value="{WEEK}"/>
  <DimensionDefinition axis="2" name="WTGID" value="{WTGID}"/>
  </dimensions>
  <measures>
  <MeasureDefinition name="Production" value="{DisplayProduction}"/>
  </measures>
  </FlattenedDataset>
  </dataset>
  </oviz:Line>
</core:FragmentDefinition>

All other VizFrame Chats in my App work fine, but this is the last thing I can't solve without using the deprecated controls.

Is there a chance to convert the example to an VizFrame Chart?

Thanks in advance and best regards

Dominik

Attachments

clipboard.png (74.1 kB)