Unable set Dynamic Options in chart.drawSVG()
- Lingua principale
- JavaScript
- Stelle
- 8.7k
- Fork
- 1.2k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I have unable to set Options for dynamically. But able to set Flow-state property.See a example.
var flowPrty = {
'x': 0,
'y': 0,
'line-width': 3,
'line-length': 50,
'text-margin': 10,
'font-size': 14,
'font-color': 'black',
'line-color': 'black',
'element-color': 'black',
'fill': 'white',
'yes-text': 'yes',
'no-text': 'no',
'arrow-end': 'block',
'scale': 1,
'symbols': {
'start': {
'font-color': 'red',
'element-color': 'green',
'fill': 'yellow'
},
'end': {
'class': 'end-element'
}
}
};
var flowstate = {
'past': {
'fill': '#CCCCCC', 'font-size': '12', 'font-color': 'white', 'stroke-width': 500, 'element-color': 'maroon'
},
'current': { 'fill': 'yellow', 'font-color': 'red', 'font-weight': 'bold' },
'future': { 'fill': '#FFFF99', 'font-size': '12', 'width': '300' },
'request': { 'fill': 'blue' },
'invalid': { 'fill': '#444444' },
'approved': { 'fill': '#58C4A3', 'font-size': '12', 'yes-text': 'APPROVED', 'no-text': 'n/a' },
'rejected': { 'fill': '#C45879', 'font-size': '12', 'yes-text': 'n/a', 'no-text': 'REJECTED' }
};
chart.drawSVG('canvas', {
flowPrty,
'flowstate': flowstate
});
-------------OR-----------------
chart.drawSVG('canvas', {
'options': flowPrty,
'flowstate': flowstate
});
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.