Adding a panel in a widget plugin
AnsweredI am attempting to write a modified version of the funnel plugin, and have made nice progress so far.
One of the things I would like is to be able to add a secondary value (measure) to each section of the funnel.
But I cannot seem to be able to add another panel for secondary values for measures.
I have tried adding this:
{
name: '2ndValue',
type: "visible",
metadata: {
types: ['measures'],
maxitems: 1
},
visibility: true
},
into the data.panels attribute array (along with the existing 'Category', 'value', and 'filters'. Similar to how a panel was added in the liquidfillguage plugin.
but the new panel simply won't show up...
what am i missing? ~~
Please sign in to leave a comment.
Comments
2 comments