title: How to make Dynamic legend for VizFrame
body: <p>I am creating an XML view in SAPUI5, where i am using VizFrame Chart. I gave the <code>Measure</code> value a fixed  name as i am not sure how to make it dynamic as per select. The use case is on select, the measure value/legend on the chart should change as per the selected item.  [Image here][1]</p>
  
  <p>The XML code:</p>
  
  <pre class="lang-xml prettyprint-override"><code> &lt;viz:VizFrame id="idVizFrame" uiConfig="{applicationSet:'fiori'}" vizProperties="{ title: {text : 'Energy', visible : true}, plotArea: {dataLabel:{visible: true} ,colorPalette :  ['#eab64d','#cb8589'] }}"
              height='100%' width="100%" vizType='line'&gt;
              &lt;viz:dataset&gt;
                  &lt;viz.data:FlattenedDataset data="{/T_TABLE}"&gt;
                      &lt;viz.data:dimensions&gt;
                          &lt;viz.data:DimensionDefinition name="Timeline"
                              value="{
                                      path: 'C_READINGTIMESTAMP',
                                      type: 'sap.ui.model.type.Date',
                                  formatOptions: {  
  
                                      pattern : 'dd/MM hh a'
                                   }}" /&gt;
                      &lt;/viz.data:dimensions&gt;
                      &lt;viz.data:measures&gt;
                          &lt;viz.data:MeasureDefinition name="Value"
                              value="{C_READINGVALUE}" /&gt;
  
                      &lt;/viz.data:measures&gt;
                  &lt;/viz.data:FlattenedDataset&gt;
              &lt;/viz:dataset&gt;
  
              &lt;viz:feeds&gt;
                  &lt;viz.feeds:FeedItem id='valueAxisFeed' uid="valueAxis" type="Measure"
                      values="Value" /&gt;
                  &lt;viz.feeds:FeedItem id='categoryAxisFeed' uid="categoryAxis" type="Dimension"
                      values="Timeline" /&gt;
              &lt;/viz:feeds&gt;
          &lt;/viz:VizFrame&gt;
  </code></pre>
  
  <p>Thanks for help. SOLVED IT. Used <code>jQuery</code> and made it dynamic on user click</p>