Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
php
/
integrations
/
rubyonrails
/
samples
/
app
/
views
/
samples
:
chart-data-highlight.html.erb
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<% def getChart chartData = { "chart": { "caption": "Harry's SuperMart", "subCaption": "Monthly revenue for last year", "xAxisName": "Month", "yAxisName": "Amount", "numberPrefix": "$", "theme": "fusion", "rotateValues": "1", "showPlotBorder": "1" }, "data": [ { "label": "Jan", "value": "420000" }, { "label": "Feb", "value": "810000" }, { "label": "Mar", "value": "720000" }, { "label": "Apr", "value": "550000" }, { "label": "May", "value": "910000", "alpha": "20", "dashed": "1" }, { "label": "Jun", "value": "510000" }, { "label": "Jul", "value": "680000" }, { "label": "Aug", "value": "620000" }, { "label": "Sep", "value": "610000" }, { "label": "Oct", "value": "490000" }, { "label": "Nov", "value": "900000" }, { "label": "Dec", "value": "730000" } ] } # Chart rendering chart = Fusioncharts::Chart.new({ width: "700", height: "400", type: "column2d", renderAt: "chartContainer", dataSource: chartData }) end %> <h3>Different language example</h3> <div id="chartContainer"></div> <%= getChart.render() %> <br/> <br/> <a href="index">Go Back</a>