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 |
#* ============================================================================ * CHARTJS v2 RADAR * * This Confluence user macro adds an animated radar chart to your page. * * Version: 1.0.000 * Date: 2017-07-22 * Author: George Lewe * Source: https://bitbucket.org/georgelewe/chartjs-v2 * License: GNU LGPLv3 * * Macro body: None * Body processing: None *# #* ---------------------------------------------------------------------------- * PARAMETER *# ## @param ChartID:title=Chart ID|type=string|required=true|desc=Enter a unique (!) identifier for this chart on your page. Use no blanks.|default=MyRadarChart ## @param ChartTitle:title=Chart Title|type=string|required=false|desc=Enter the title of your chart.|default=My Radar Chart ## @param ChartWidth:title=Chart Width|type=string|required=true|desc=Enter the width of your chart in pixels or percent here. The height will be automatically adjusted.|default=500px ## @param ChartColor:title=Chart Color|type=string|required=false|desc=Enter the chart color here in the form of three decimal values for R, G and B separated by a comma.|default=255,100,100 ## @param BorderWidth:title=Border Width|type=string|required=false|desc=Enter the width of the chart border followed by 'px'. Enter 0px for no border.|default=1px ## @param BorderColor:title=Border Color|type=string|required=false|desc=Enter the border color as a hex value starting with a hash.|default=#d7d7d7 ## @param ShowTitle:title=Show Title|type=boolean|desc=Select whether the chart title shall be displayed.|default=true ## @param DataLabels:title=Dataset Labels|type=string|required=true|desc=Enter a semicolon separated list of your datasete labels. They apply to all datasets. Make sure you enter as much labels as you enter dataset values below.|default=Apples,Oranges,Bananas,Grapes ## @param Data1Title:title=Dataset 1 Legend|type=string|required=true|desc=Enter the title of this dataset.|default=My first dataset ## @param Data1Values:title=Dataset 1 Values|type=string|required=true|desc=Enter a comma separated list of your data values. Make sure you enter as much values as you enter labels above.|default=18,29,40,34,24 ## @param Data1LineWidth:title=Dataset 1 Line Width|type=string|required=false|desc=Enter the line width of this dataset in pixels.|default=1 ## @param Data1LineColor:title=Dataset 1 Line Color|type=string|required=false|desc=Enter the line color of this dataset. Use three decimal values for R, G and B separated by a comma.|default=151,187,205 ## @param Data1BackgroundColor:title=Dataset 1 Background Color|type=string|required=false|desc=Enter the fill color inside the area of this dataset. Use three decimal values for R, G and B separated by a comma.|default=151,187,205 ## @param ShowSecondSet:title=Show Second Dataset|type=boolean|desc=Select whether the chart shall show a second dataset. If unchecked, the values below have no effect.|default=false ## @param Data2Title:title=Dataset 2 Legend|type=string|required=true|desc=Enter the title of this dataset.|default=My second dataset ## @param Data2Values:title=Dataset 2 Values|type=string|required=true|desc=Enter a comma separated list of your data values. Make sure you enter as much values as you enter labels above.|default=4,34,8,21,3 ## @param Data2LineWidth:title=Dataset 2 Line Width|type=string|required=false|desc=Enter the line width of this dataset in pixels.|default=1 ## @param Data2LineColor:title=Dataset 2 Line Color|type=string|required=false|desc=Enter the line color of this dataset. Use three decimal values for R, G and B separated by a comma.|default=179,179,0 ## @param Data2BackgroundColor:title=Dataset 2 Background Color|type=string|required=false|desc=Enter the fill color inside the area of this dataset. Use three decimal values for R, G and B separated by a comma.|default=179,179,0 #* ---------------------------------------------------------------------------- * PROCESS INPUT *# #if (!$paramChartTitle) #set ($paramTitle="My Radar Chart") #end #* ---------------------------------------------------------------------------- * OUTPUT *# |
#if ($paramShowTitle == true)
$paramChartTitle
#end
#* —————————————————————————- * JAVASCRIPT *#