VizFrame combined chart with multiple Y-Axis
<p>I have a problem with the VizFrame control of the SAPUI5 Framework. I want to display some data in an complex chart with two Y-axes. My data model looks like this:</p>
<pre><code>{
      &quot;d&quot; : {
        &quot;results&quot; : [
          {
            &quot;DataA&quot; : &quot;2&quot;,
            &quot;DataB&quot; : &quot;4&quot;,
            &quot;Id&quot; : &quot;1&quot;,
          },
          {
            &quot;DataA&quot; : &quot;3&quot;,
            &quot;DataB&quot; : &quot;2&quot;,
            &quot;Id&quot; : &quot;2&quot;,
          }
       ]
   }
}
</code></pre>
<p>I tried to display DataA on the left Y-Axis and DataB on the right one, while using the Id for the X-Axis. This works without problems with the VizFrame types: <strong>dual_line</strong> and <strong>dual_column</strong>.</p>
<p>I havent found a way to display the data as a bar (DataA on Y1) and line (DataB on Y2). My current coding looks like this:</p>
<pre><code>var oModel = new sap.ui.model.json.JSONModel();
        
        oModel.loadData(&quot;data.json&quot;);

        var oDataset = new sap.viz.ui5.data.FlattenedDataset({              
            dimensions: [{
                axis : 2,
                name : oLocText.getText('Id'),
                value : &quot;{Id}&quot;
            }],         
            measures : [{
                    group : 1,
                    name : DataA,
                    value : '{DataA}'
                },{
                    group : 2,
                    name: DataB,
                    value: '{DataB}'
                }],
            data : {
                path : &quot;/d/results&quot;
            }
        }); 
    
        oVizFrame.setDataset(oDataset);
        oVizFrame.setModel(oModel); 
        oVizFrame.setVizType('combination');

        oVizFrame.setVizProperties({
            title: {
                  visible: true,
                  text: &quot;Combined&quot;
              },            
            plotArea: {
                colorPalette : d3.scale.category20().range(),
            }});
        
        var feedValueAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({
              'uid': &quot;primaryValues&quot;,
              'type': &quot;Measure&quot;,
              'values': [ DataA , DataB]
            }),
            feedCategoryAxis = new sap.viz.ui5.controls.common.feeds.FeedItem({
              'uid': &quot;axisLabels&quot;,
              'type': &quot;Dimension&quot;,
              'values': [ Id]
            });
            
        oVizFrame.addFeed(feedValueAxis);
        oVizFrame.addFeed(feedCategoryAxis); 
</code></pre>
<p>Thank you very much for your help!</p>