16149-change-scatter-chart-color

Created using FusionCharts Suite XT - www.fusioncharts.com

by Moonmi Sonowal

HTML

<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/themes/fusioncharts.theme.fint.js"></script>
<!-- Scatter chart or XY plot chart with regession line. This sample shows how temperature affects the sales revenue of Beer and Ice Cream. Attribute: # showRegressionLine for <dataset> node.
-->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function () {
    var tempVsSalesChart = new FusionCharts({
        type: 'scatter',
        renderAt: 'chart-container',
        width: '650',
        height: '350',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "caption": "Event ROI, Lift and Incremental Volume",
                    "subcaption": "Circle Size = Incremental Volume",
                    "xaxisminvalue": "-51.84",
                    "xaxismaxvalue": "70.96",
                    "yaxisminvalue": "0",
                    "yaxismaxvalue": "315.00",
                    "plotfillalpha": "70",
                    "plotfillhovercolor": "#6baa01",
                    "showplotborder": "0",
                    "xaxisname": "Return on Investment (ROI)",
                    "yaxisname": "% Lift",
                    "showvalues": "1",
                    "anchorradius": "12",
                    "theme": "fint"
            },
                "categories": [{
                "category": [{
                    "label": "-51.84%",
                        "x": "-51.84",
                        "showverticalline": "1"
                }, {
                    "label": "-10.84%",
                        "x": "-10.84",
                        "showverticalline": "1"
                }, {
                    "label": "30.16%",
                        "x": "30.16",
                        "showverticalline": "1"
                }]
            }],
                "dataset": [{
                "data": [{
                    "anchorbordercolor": "#CC33FF",
                        "anchorbgcolor": "#CC33FF",
                        "color": "#CC33FF",
                        "x": "27.23",
                        "y": "215.00",
                        "displayvalue": "P1 July 4 2/$5 Scan",
                        "tooltext": "PD Laydown Bag{br}7/5/2014{br}ROI: 27.23{br}Lift: 215"
                }, {
                    "anchorbordercolor": "#FF3300",
          ...