grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

create block for charts

Open ionic666 opened this issue 8 years ago • 2 comments

hi,First of all, I wish you a happy life.i have created a block for charts like: qq20180614-133204

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 6a5cc63b-d10f-49cf-883c-f7b79b56d8ae

ionic666 avatar Jun 14 '18 05:06 ionic666

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',
	}]
}

artf avatar Jun 16 '18 10:06 artf

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.

lock[bot] avatar Sep 17 '19 12:09 lock[bot]