Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
mahitham
Creator II
Creator II

Picasso Widget Help

Hi Experts,

I am very new to Widget development.I am trying to build a widget based on below URL Code like below bar chart

https://github.com/q2g/q2g-com-picasso

Combo1.pngI have tried like below I have copied the code into html and drag and drop Dimensions and Measures into right panel but not able to see any preview. Please help me on this.

<q2g-com-picasso model="data.model" settings="settings">
<!--
var settingsChart = {
 scales: {
  x: {
   data: {
    extract: {
        field: 'qDimensionInfo/0'
    },
   },
   padding: 0.4
  },
  y: {
   data: {
    field: 'qMeasureInfo/0'
   },
   expand: 0.1,
   invert: true
  }
 },
 components: [{
  type: 'axis',
  scale: 'y',
  dock: 'left'
 }, {
  type: 'axis',
  scale: 'x',
  dock: 'bottom'
 }, {
     key: "bar",
     type: "box",
     data: {
         extract: {
             field: "qDimensionInfo/0",
             props: {
                 start: 0,
                 end: {
                     field: "qMeasureInfo/0"
                 }
             }
         },
     },
     settings: {
         major: {
             scale: "x"
         },
         minor: {
             scale: "y"
         },
         box: {
              fill: settings.setCol
            }
     }
 }]
};
let chart = picasso.chart({
 element: element,
 data: data,
 settings: settingsChart
});
console.log("CHART", chart);
-->
</q2g-com-picasso>

Thanks in advance.

0 Replies