This is a component, developed for the widget editor of Qlik Sense. The goal of this component is to enable developer to create their own Picasso.js charts in the Widget Editor. The huge advantage of this approach is, that you can easily user the property panes to customize styling of your picasso.js chart without the effort of building a complete extension.
<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>
- Download the ZIP and unzip
- Qlik Sense Desktop Copy it to: %homeptah%\Documents\Qlik\Sense\Extensions and unzip
- Qlik Sense Entripse Import in the QMC
Make sure, that you have activate the new component in our widget
- Clone the Github Repo into extension directory
- Install nodejs
- Open Node.js command prompt
- npm install
- npm run build