Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: Re render the makit charts

$
0
0

Hi Dennis,

 

Yes,

 

As we discussed earlier the same requirement again, since i am not able to see the viz charts in mobile i have to use makit charts.

 

I want to show one set of data say consumption against year by deafault.

 

And if the user selects to compare with previous year, the chart should redraw and show the multi series charts.

 

 

i am generating the testdata as follows,

businessData2[p]={ReadingDateTime:month[q],Consumption:yArray[n],Consumption1:zArray[x]};

  p++;

  x++;

  }

  var oChartj = new sap.makit.Chart({

  

     height: "80%",

  

     width: "100%",

    

     primaryColorPalette:["#18458D"],

  

     category : new sap.makit.Category({ column : "month" }),

  

   

  

     values : [new sap.makit.Value({ expression : "consumption"})]

  

  });

  

  var testData = {

  

     mycollection :businessData2

  

  };

  

  var jsonModel = new sap.ui.model.json.JSONModel();

 

 

  jsonModel.setData(testData);

  

  oChartj.addColumn(new sap.makit.Column({name:"month", value:"{ReadingDateTime}"}));

 

 

 

 

 

 

 

  oChartj.addColumn(new sap.makit.Column({name:"consumption", value:"{Consumption}"}));

  

  oChartj.setModel(jsonModel);

  

  oChartj.bindRows("/mycollection");

 

 

Also i dont know how to do the multiseries charts. Please explain that too.

 

Regards,

Arun


Viewing all articles
Browse latest Browse all 9052

Trending Articles