You are viewing documentation for an older version. For current documentation - click here.

FusionWidgets XT bullet graphs allow you to configure a lot of functional and cosmetic properties. Here, we'll see how to:

Let's see each of them one by one.

Using palettes

The bullet graphs offer 5 pre-defined color palettes for you to choose from. Each of these palettes is accessible by the numbers 1-5 respectively. To choose a palette, all you need to do is set:

<chart palette='2' or '3' or ..>
{
  "chart": {
    "palette": "2" or "3" or
    ...
  },

Shown below are a few examples of palettes applied on our previous graph:

 
Palette 2 applied
 
 
Palette 3 applied
 
 
Palette 4 applied

Additionally, you can also define an entire new palette by setting a single theme color using:

<chart paletteThemeColor='669933' palette='2'..>
{
"chart": {
"paletterthemecolor": "669933",
"palette": "2",
...
},

This will create a new palette derived from this color and then color the chart as under:

 
Customizing plot & target properties

You can customize the plot & target color properties using:

<chart ... plotFillColor='CC0000' plotFillAlpha='90' targetColor='CC0000' targetThickness='4' ...>
{
"chart": { ...
"plotfillcolor": "CC0000",
"plotfillalpha": "90", "targetcolor": "CC0000", "targetthickness": "4",
...
},

This will result in:

You can also add a border to the plot bar using:

<chart ... plotFillColor='CCCCCC' showPlotBorder='1' plotBorderColor='333333' plotBorderThickness='1' plotBorderAlpha='100' ..>
{
"chart": { ...
"plotfillcolor": "CCCCCC",
"showplotborder": "1", "plotbordercolor": "333333", "plotborderthickness": "1", "plotborderalpha": "100",
...
},

This will result in:

You can configure the thickness (height in horizontal bullet graph; width in vertical bullet graph) of the value bar and target line using:

<chart ... plotFillPercent='20' targetFillPercent='25' ...>
{
"chart": { ...
"plotfillpercent": "20",
"targetFillPercent": "25",
...
},

Here, we've made both the plot bar and target line thinner, as shown below:

 
Customizing color range properties

You can specify the color range's gradient mix and ratio in FusionWidgets XT gradient formula as under:

<chart ... colorRangeFillMix='{light-30},{dark-10},{color}' colorRangeFillRatio='5,10,85' ..>
{
"chart": { ...
"colorrangefillmix": "{light-30},{dark-10},{color}",
"colorrangefillratio": "5,10,85",
...
},

This will result in:

To get 2D look (without any gradient), you can set:

<chart ... colorRangeFillMix='' ...>
{
"chart": { ...
"colorrangefillmix": "",
...
},

This will result in:

You can remove the chart's shadow using:

<chart ... showShadow='0' ...>
{
"chart": { ...
"showshadow": "0",
...
},

This will result in:

You can also opt to show color range border using:

<chart ... showColorRangeBorder="1" colorRangeBorderColor="666666" colorRangeBorderThickness="1" colorRangeBorderAlpha="100" colorRangeFillMix="" showShadow="0" .../>
{
"chart": { ...
"showcolorrangeborder": "1",
"colorrangebordercolor": "666666", "colorrangeborderthickness": "1", "colorrangeborderalpha": "100", "colorRangeFillMix": "", "showshadow": "0"
...
},

This will result in:

 
Tick mark customizations

In a horizontal bullet graph, you can opt to show tick marks below the graph or above the graph. In a vertical, you can choose whether to show it at left or right. In horizontal, to move the tick marks up, you'll need to set:

<chart ... ticksBelowGraph='0' ..>
{
"chart": { ...
"ticksbelowgraph": "0",
...
},

This will result in:

You can hide tick marks and values using:

<chart ... showTickMarks='0' showTickValues='0' ...>
{
"chart": { ...
"showtickmarks": "0",
"showtickvalues": "0",
...
},

This will result in:

You can control the number of tick marks using:

<chart ... majorTMNumber='6' minorTMNumber='3' ...>
{
"chart": { ...
"majorTMnumber": "6",
"minorTMnumber": "3",
...
},

This will result in:

You can customize tick mark properties using:

<chart ... majorTMColor='AAAAAA' majorTMAlpha='100' majorTMHeight='10' majorTMThickness='1' minorTMColor='BBBBBB' minorTMAlpha='100' minorTMHeight='6' minorTMThickness='1' ...>
{
"chart": { ...
"majorTMcolor": "AAAAAA",
"majorTMalpha": "100", "majorTMheight": "10", "majorTMthickness": "1", "minorTMcolor": "BBBBBB", "minorTMalpha": "100" "minorTMheight": "6" "minorTMhickness": "1"
...
},

This will result in:

 
Plotting as point instead of bar

You can opt to show the plot as point, instead of bar, using:

<chart ... plotAsDot='1' ...>
{
"chart": { ...
"plotasdot": "1",
...
},

This will result in:

 
Hiding chart value

You can hide chart value by setting:

<chart ... showValue='0' chartRightMargin='30' ...>
{
"chart": { ...
"showvalue": "0",
"chartrightmargin": "30",
...
},

Here, we've also increased the chart's right margin, so that the axis values do not go out of chart. You'll get a chart as under: