This extension was developed, to ease the development of Picasso.js charts. The big advantage is, that you can see without compiling your code, what your changes in your chart object resolve in. Because of the implementation of a fully working editor, you can directly see syntax errors, as well as errors in the notation of you JSON objects. This extension is most useful in connection with the q2g-com-picasso, which is a component for the widget editor of Qlik Sense.
var settings = {
scales: {
x: {
data: {
extract: {
field: 'qDimensionInfo/0'
},
},
padding: 0.4
},
y: {
data: {
field: 'qMeasureInfo/0'
},
expand: 0.1,
invert: true
}
},
components: [
{
key: "axis-y",
type: 'axis',
scale: 'y',
dock: 'left'
}, {
key: "axis-x",
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: "#060"
}
}
}]
};
let chart = picasso.chart({
element: element,
data: data,
settings: settings
});