JSFiddle - React, Tailwind, and code Playground
by cpastore84
HTML
<link rel="stylesheet" href="http://cdn.sencha.com/ext/gpl/4.2.1/resources/css/ext-all.css">
JavaScript
Ext.onReady(function () {
var store2 = Ext.create('Ext.data.Store', {
fields: ['state', 'population'],
data: [{
state: 'New Zealand',
population: 252
}, {
state: 'Chad',
population: 120
}, {
state: 'MOROCCO',
population: 201
}]
});
Ext.create('Ext.chart.Chart', {
renderTo: Ext.getBody(),
width: 500,
height: 300,
store: store2,
series: [{
type: 'pie',
field: 'population',
label: {
field: 'state',
display: 'rotate',
font: '12px Arial'
}
}]
});
});