<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Syntax for updating chart label via macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-for-updating-chart-label-via-macro/m-p/317940#M117209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a macro to swap out dimensions on a chart via button.&amp;nbsp; However, when the new dimension is inserted, I lose the custom label, which is a variable 'vTimeView'.&amp;nbsp; I'm looking for the VB syntax to update the dimension label for object CH54.&amp;nbsp; Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jul 2011 12:38:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-29T12:38:07Z</dc:date>
    <item>
      <title>Syntax for updating chart label via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-updating-chart-label-via-macro/m-p/317940#M117209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using a macro to swap out dimensions on a chart via button.&amp;nbsp; However, when the new dimension is inserted, I lose the custom label, which is a variable 'vTimeView'.&amp;nbsp; I'm looking for the VB syntax to update the dimension label for object CH54.&amp;nbsp; Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 12:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-updating-chart-label-via-macro/m-p/317940#M117209</guid>
      <dc:creator />
      <dc:date>2011-07-29T12:38:07Z</dc:date>
    </item>
    <item>
      <title>Syntax for updating chart label via macro</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-updating-chart-label-via-macro/m-p/317941#M117210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I think they're calling the attribute Title for dimensions (even though there is a ShowLabel attribute as well).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the API Guide: &lt;/P&gt;&lt;P&gt;set chart = ActiveDocument.Activesheet.CreateStraightTable&lt;/P&gt;&lt;P&gt;chart.AddDimension "ProductType"&lt;/P&gt;&lt;P&gt;chart.AddExpression "sum(Amount)"&lt;/P&gt;&lt;P&gt;chart.AddExpression "count(Customer)"&lt;/P&gt;&lt;P&gt;set cp = chart.GetProperties&lt;/P&gt;&lt;P&gt;set dims = cp.Dimensions&lt;/P&gt;&lt;P&gt;dims(0).Title.v = "Type of product"&lt;/P&gt;&lt;P&gt;chart.SetProperties cp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind the dimensions are an array, so if you have more than one, make sure you refer to the correct one. dims(#).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2011 15:05:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-updating-chart-label-via-macro/m-p/317941#M117210</guid>
      <dc:creator />
      <dc:date>2011-07-29T15:05:45Z</dc:date>
    </item>
  </channel>
</rss>

