<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.charts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.widgets.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<link rel="stylesheet" href="http://cdn.sencha.io/ext-4.2.0-gpl/resources/css/ext-all.css">
<!-- This example shows how to use charts from FusionCharts Suite XT in a Form Component of Sencha ExtJS. We create an instance of column chart, and place it in a ExtJS component. -->
JavaScript
/*
* Here an ExtJS application named 'Fiddle' is created.
* We create the different components of ExtJS in the launch callback function.
*/
Ext.application({
name: 'Fiddle',
launch: function () {
/*
* Here we defined the view porion of the ExtJS.
* This is the outer container which encapsulates all the view.
* We place our form as one of the items in this container.
*/
Ext.create('Ext.container.Container', {
border: 1,
style: {
borderColor: '#99bce8',
borderStyle: 'solid'
},
renderTo: Ext.getBody(),
items: [{
xtype: 'form',
border: false,
title: 'Sales in this week',
bodyPadding: 5,
// Fields will be arranged vertically, stretched to full width
//layout: 'anchor',
//defaults: {
// anchor: '100%'
//},
// The fields
defaultType: 'numberfield',
items: [{
fieldLabel: 'Monday',
name: 'Monday',
value: 100
}, {
fieldLabel: 'Tuesday',
name: 'Tuesday',
value: 110
}, {
fieldLabel: 'Wednesday',
name: 'Wednesday',
value: 160
}, {
fieldLabel: 'Thursday',
name: 'Thursday',
value: 190
}, {
fieldLabel: 'Friday',
name: 'Friday',
value: 10
}, {
fieldLabel: 'Saturday',
name: 'Saturday',
value: 200
}, {
fieldLabel: 'Sunday',
name: 'Sunday',
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.