Inverse Y-axis Chart

The inverse y-axis charts are similar to the normal FusionCharts Suite XT charts, except that the y-axis in these charts is inversed; the lower limit and upper limit value positions are swapped in an inverse y-axis chart.

The chart below shows you the difference between a normal and an inverse y-axis chart:

Vector imageLoading chart. Please wait
Inverse Column 2D ChartColumn 2D Chart

The chart is rendered with two radio buttons: Inverse Multi-series Column 2D Chart and Multi-series Column 2D Chart. When the first radio button is selected, the chart is rendered with an inverse y-axis; when the second one is selected, the chart is rendered with a normal y-axis. Observe that when you render the inverse y-axis chart, the lower limit value is rendered at the top and the upper limit value is rendered at the bottom - inverse of how it is rendered for a normal y-axis chart.

The data structure needed to render this chart is given below:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
   "chart": {
      "caption": "Average Page Load Time (hsm.com)",
      "subCaption": "Last Week",
      "showBorder": "0",
      "xAxisName": "Day",
      "yAxisName": "Time (In Sec)",
      "numberSuffix": "s",
      "placeValuesInside": "0",
      "valueFontColor": "#333333",
      "rotateValues": "0",
      "theme": "fint"
   },
   "categories": [
      {
         "category": [
            {
               "label": "Mon"
            },
            {
               "label": "Tue"
            },
            {
               "label": "Wed"
            },
            {
               "label": "Thu"
            },
            {
               "label": "Fri"
            },
            {
               "label": "Sat"
            },
            {
               "label": "Sun"
            }
         ]
      }
   ],
   "dataset": [
      {
         "seriesname": "Loading Time",
         "allowDrag": "0",
         "data": [
            {
               "value": "6"
            },
            {
               "value": "5.8"
            },
            {
               "value": "5"
            },
            {
               "value": "4.3"
            },
            {
               "value": "4.1"
            },
            {
               "value": "3.8"
            },
            {
               "value": "3.2"
            }
         ]
      }
   ]
}
...

The FusionCharts Suite XT includes the following three types of inverse axis charts:

  • Inverse Y-axis Column Chart

  • Inverse Y-axis Area Chart

  • Inverse Y-axis Line Chart

You have seen how an inverse y-axis column chart looks.

An inverse y-axis multi-series area chart looks like this:

Vector imageLoading chart. Please wait

The data structure needed to render an inverse y-axis multi-series area chart is given below:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
   "chart": {
      "caption": "Daily bounce rate",
      "subCaption": "Last week",
      "xAxisName": "Day",
      "yAxisName": "Percentage",
      "numberSuffix": "%",
      "showBorder": "0",
      "paletteColors": "#0075c2,#1aaf5d",
      "bgColor": "#ffffff",
      "usePlotGradientColor": "0",
      "plotFillAlpha": "50",
      "showCanvasBorder": "0",
      "LegendShadow": "0",
      "legendBorderAlpha": "0",
      "showXAxisLine": "1",
      "axisLineAlpha": "40",
      "divlineColor": "#999999",
      "divlineThickness": "1",
      "divLineIsDashed": "1",
      "divLineDashLen": "1",
      "divLineGapLen": "1",
      "showAlternateHgridColor": "0",
      "showValues": "0",
      "baseFontColor": "#333333",
      "baseFont": "Helvetica Neue,Arial",
      "captionFontSize": "14",
      "subcaptionFontSize": "14",
      "subcaptionFontBold": "0",
      "toolTipColor": "#ffffff",
      "toolTipBorderThickness": "0",
      "toolTipBgColor": "#000000",
      "toolTipBgAlpha": "80",
      "toolTipBorderRadius": "2",
      "toolTipPadding": "5"
   },
   "categories": [
      {
         "category": [
            {
               "label": "Mon"
            },
            {
               "label": "Tue"
            },
            {
               "label": "Wed"
            },
            {
               "label": "Thu"
            },
            {
               "label": "Fri"
            },
            {
               "label": "Sat"
            },
            {
               "label": "Sun"
            }
         ]
      }
   ],
   "dataset": [
      {
         "seriesname": "food.hsm.com",
         "data": [
            {
               "value": "27"
            },
            {
               "value": "22"
            },
            {
               "value": "25"
            },
            {
               "value": "27"
            },
            {
               "value": "21"
            },
            {
               "value": "29"
            },
            {
               "value": "22"
            }
         ]
      },
      {
         "seriesname": "cloth.hsm.com",
         "data": [
            {
               "value": "42"
            },
            {
               "value": "38"
            },
            {
               "value": "39"
            },
            {
               "value": "36"
            },
            {
               "value": "43"
            },
            {
               "value": "44"
            },
            {
               "value": "35"
            }
         ]
      }
   ]
}
...

An inverse y-axis multi-series line chart looks like this:

Vector imageLoading chart. Please wait

To render an inverse y-axis multi-series line chart, set the value of the type attribute to inversemsline

There! You have now seen how you can create inverse y-axis charts.