grapesjs
grapesjs copied to clipboard
create block for charts
hi,First of all, I wish you a happy life.i have created a block for charts like:

I don't know how to get chart from my block.Global variables are not available.
And i also want to modify configuration items for charts

I don't know how to get chart from my block. Global variables are not available.
I don't understand what do you want to do
And i also want to modify configuration items for charts
You can use changeProp to get the property value of your components
content: {
type: 'mycharts',
xaxis: 100,
traits: [{
label: 'xAxis',
// Use changeProp and assign the same
// name of the property to get its value
changeProp: 1,
name: 'xaxis',
}]
}
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.