Skip to Content
avatar image
Former Member

Aggregation binding not working in AreaMicroChart

I have bound JSONModel with sap.suite.ui.microchart.AreaMicroChart control to show points in lines aggregation but chart is not rendering.

Plese tell me whats wrong in below XML code:

<micro:AreaMicroChart lines="{/}" id="areaMicroChart" isResponsive="true" minXValue="0" app:name="area" maxXValue="12" minYValue="0" maxYValue="999999" colorPalette="#b6d957" press="press">
        <micro:AreaMicroChartLabel label="Jan" />
        <micro:AreaMicroChartLabel label="Dec" />
        <micro:AreaMicroChartLabel label="" color="Good" />
        <micro:AreaMicroChartLabel label="" />
        <micro:AreaMicroChartItem points="{path: 'aPrev', templateShareable: 'true' }">
                <micro:AreaMicroChartPoint x="{a}" y="{ZtotalSales}" />

JS Code:
onInit: function() {
    var aPrevMonths = [{
        ZtotalSales: "2123",
        a: "1"
    }, {
        ZtotalSales: "55545",
        a: "2"
    }, {
        ZtotalSales: "34342",
        a: "3"
    var oModel = new JSONModel({
        aPrev: aPrevMonths

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers