# chart_highcharts

Name chart_highcharts
Type panel
Version 1.0
Since 2020-01-01

# Prologue

Highcharts panel represents data inside charts.

# Preview

Line chart

Bar chart

# Configuration

chart_highcharts:
	render:
		width: 6
	config:
		ui:
			# optional variable which set the title of the chart
			# default value null: without title
			title: Zisk vs ztráty

			# optional variable which define the description of the chart
			# default value null: without description
			description: graf zisků a ztrát

			# optional variable which enable/disable labels for points in the chart
			# default value true: enabled labels
			dataLabels: true

			# optional variable which enable/disable chart legend
			# default value false: legend is hidden
			legend: false

            # optional variable which allow to set the ui settings for x-axis.
			xAxis:
				# title for x-axis
                # default value null: title is hidden
				title: "rok"

            # optional variable which allow to set the ui settings for y-axis.
			yAxis:
				# title for y-axis
                # default value null: title is hidden
				title: "Kč"

		# required variable which define the type of graph
		# define in rhich chart will be data represented
        # allowed values: line, bar
		type: 'line'

		# required variable which contains data sets
		# settings of chart data
		series:
            # key of data set
			series1:
				# optional variable which allow to set the name for data series
				# name is used in legend
                #default value is ke of data set(in this example it would be 'series1')
				name: Profit

				# required variable which contains the name of the variable with chart data
				data: profit_data

				# optional variable which allow to set the color of the data set in the chart
				color: green

			series2:
				name: Ztráty
				data: looses_data
				color: red
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