Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How can we create the chart (Bar chart,line chart etc.) using script? in the Qlikview?
Nit sure about your request. Charts comes and design from charts
We won't create charts with script but we will create data sets/table.
You cannot create charts from the script (no DOM, no ActiveDocument so no working API functions that manipulate the DOM)
If you're working in QV Desktop however, you can create all the necessary data tables and variables in your script, add a suitable macro that creates the object(s) you want to see, and run the macro using the OnPostReload trigger.
Examples of how to create objects using mcaros? See here: Macro generates chart but continously and I want once or here: Create Custom Chart with Macro
I got the below script on the internet but as I am new to QlikView I am unable to understand it..If anyone having knowledge about it please tell me.
Thank you
Since "the internet" is a huge repository of scripts in various programming languages, the script you posted may be targeted to a product that is unrelated to those by Qlik. Do you know what language it is written in?
BTW QlikView macros can be written in either VBScript or JavaScript. AFAIK VBScript is the more popular macro programming lagnuae (although it is seriously less powerful than JavaScript)
Dear Sayalee,
In QlikView for chart visualizations we can use from given style or can use extensions for customized chart.
We can write some expressions for charts in scripting.