<?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 line chart on the fly change line thickness in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/line-chart-on-the-fly-change-line-thickness/m-p/1795970#M14084</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm creating a mashup using visualizations generated on the fly.&amp;nbsp; I was able to generate a line chart with 3 measures as you can see in the snapshot below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52164iC7A9C2968E4AC0DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now my question is how to change the line thickness in JS file. I know from the manual that there is the possibility to change the thickness using the "style" property but I didn't undertand how and where to insert this property block into the code. I'm newbe in mashup development. Can someone help me on this? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you all for the support!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;app.visualization.create(
  'linechart',
  [
    {
      "qDef": {
        "qGrouping": "N",
        "qFieldDefs": ["Date"],
        "qFieldLabels": ["Year Month"]
      },
      "qNullSuppression": true
    },
    {
      "qDef": {
        "qLabel": "Service Score",
        "qGrouping": "N",
        "qDef": "=expression1",
        "qNumFormat": {
          "qType": "U",
          "qnDec": 1,
          "qUseThou": 0
        }
      }
    },
	{
      "qDef": {
        "qLabel": "Parts Score",
        "qGrouping": "N",
        "qDef": "=expression2",
        "qNumFormat": {
          "qType": "U",
          "qnDec": 1,
          "qUseThou": 0
        }
      }
    },
	{
      "qDef": {
        "qLabel": "TK Score",
        "qGrouping": "N",
        "qDef": "=expression3",
        "qNumFormat": {
          "qType": "U",
          "qnDec": 1,
          "qUseThou": 0
        }
      }
    }	
  ],
  {
    "showTitles": false,
    "title": "",
	"dataPoint": {
      "show": true,
      "showLabels": true
	  }
  }
).then(function(vis){
  vis.show("QV23");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:20:12 GMT</pubDate>
    <dc:creator>kikko</dc:creator>
    <dc:date>2024-11-16T00:20:12Z</dc:date>
    <item>
      <title>line chart on the fly change line thickness</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/line-chart-on-the-fly-change-line-thickness/m-p/1795970#M14084</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm creating a mashup using visualizations generated on the fly.&amp;nbsp; I was able to generate a line chart with 3 measures as you can see in the snapshot below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/52164iC7A9C2968E4AC0DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now my question is how to change the line thickness in JS file. I know from the manual that there is the possibility to change the thickness using the "style" property but I didn't undertand how and where to insert this property block into the code. I'm newbe in mashup development. Can someone help me on this? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you all for the support!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;app.visualization.create(
  'linechart',
  [
    {
      "qDef": {
        "qGrouping": "N",
        "qFieldDefs": ["Date"],
        "qFieldLabels": ["Year Month"]
      },
      "qNullSuppression": true
    },
    {
      "qDef": {
        "qLabel": "Service Score",
        "qGrouping": "N",
        "qDef": "=expression1",
        "qNumFormat": {
          "qType": "U",
          "qnDec": 1,
          "qUseThou": 0
        }
      }
    },
	{
      "qDef": {
        "qLabel": "Parts Score",
        "qGrouping": "N",
        "qDef": "=expression2",
        "qNumFormat": {
          "qType": "U",
          "qnDec": 1,
          "qUseThou": 0
        }
      }
    },
	{
      "qDef": {
        "qLabel": "TK Score",
        "qGrouping": "N",
        "qDef": "=expression3",
        "qNumFormat": {
          "qType": "U",
          "qnDec": 1,
          "qUseThou": 0
        }
      }
    }	
  ],
  {
    "showTitles": false,
    "title": "",
	"dataPoint": {
      "show": true,
      "showLabels": true
	  }
  }
).then(function(vis){
  vis.show("QV23");&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:20:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/line-chart-on-the-fly-change-line-thickness/m-p/1795970#M14084</guid>
      <dc:creator>kikko</dc:creator>
      <dc:date>2024-11-16T00:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: line chart on the fly change line thickness</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/line-chart-on-the-fly-change-line-thickness/m-p/1796214#M14087</link>
      <description>&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Adding this the property next to "data point" ie at the end should change the thickness of the line&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"components"&lt;/SPAN&gt;&lt;SPA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p;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"lineType"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"solid"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"lineCurve"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"linear"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 31 Mar 2021 21:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/line-chart-on-the-fly-change-line-thickness/m-p/1796214#M14087</guid>
      <dc:creator>Christopher_prem</dc:creator>
      <dc:date>2021-03-31T21:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: line chart on the fly change line thickness</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/line-chart-on-the-fly-change-line-thickness/m-p/1796344#M14094</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/130910"&gt;@Christopher_prem&lt;/a&gt;&amp;nbsp;!!!&lt;/P&gt;&lt;P&gt;Now I have another question&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I saw in the manual I can change the format of each line separatly by applying same logic into the qmeasure block. But if I try to insert the code for "expr3" the line format doesn't change. Maybe I chosed the wrong place to insert the code or the syntax is not correct. I'm getting crazy!!&lt;/P&gt;&lt;P&gt;Can you please help me once again? Thank you again!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please watch the updated code below:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;app.visualization.create(
  'linechart',
  [
    {
      "qDef": {
        "qGrouping": "N",
        "qFieldDefs": ["Date"],
        "qFieldLabels": ["Year Month"]
      },
      "qNullSuppression": true
    },
    {
      "qDef": {
        "qLabel": "Service Score",
        "qGrouping": "N",
        "qDef": "=expr1",
        "qNumFormat": {
          "qType": "U",
          "qnDec": 1,
          "qUseThou": 0
        }
      }  
    },
	{
      "qDef": {
        "qLabel": "Parts Score",
        "qGrouping": "N",
        "qDef": "expr2",
        "qNumFormat": {
          "qType": "U",
          "qnDec": 1,
          "qUseThou": 0
        }
      }
    },
	{
      "qDef": {
        "qLabel": "TK Score",
        "qGrouping": "N",
        "qDef": "expr3",        
		"qNumFormat": {
          "qType": "U",
          "qnDec": 1,
          "qUseThou": 0
        },
	"style":{
		"dataPointSize": 6,
		"lineThickness":1,
		"lineType":"dashed",
		"lineCurve":"linear"
	}
      }
    }	
  ],
  {
    "showTitles": false,
    "title": "Service Score Trend",
	"nullMode": "connect",
	"scrollStartPos": 1,
	"dataPoint": {
      "show": true,
      "showLabels": true
	},
	"measureAxis": {
		"show": "label",
		"dock": "near",
		"spacing": 0.5
  	},
	"components": [
                      {
                       "key": "line",
                       "style": {
                                 "dataPointSize": 8,
                                 "lineThickness": 3,
                                 "lineType": "solid",
                                 "lineCurve": "linear"
                       }
                       }
            ]
  }
  
).then(function(vis){
  vis.show("QV23");
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 10:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/line-chart-on-the-fly-change-line-thickness/m-p/1796344#M14094</guid>
      <dc:creator>kikko</dc:creator>
      <dc:date>2021-04-01T10:33:01Z</dc:date>
    </item>
  </channel>
</rss>

