-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(analytics): 🐛 add availability change by institution type chart …
…and update styles
- Loading branch information
Showing
10 changed files
with
155 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
134 changes: 134 additions & 0 deletions
134
src/pages/Analytics/Data/production/availability-change-by-institution-type.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
/** @import * as Types from "../../types" */ | ||
|
||
import Highcharts from 'highcharts'; | ||
|
||
/** | ||
* @type {Types.ChartData} - Column chart data. | ||
*/ | ||
export const availabilityChangeByInstitutionType = { | ||
section: 'real section 1', | ||
order: 1, | ||
id: 'availabilityChangeByInstitutionType', | ||
componentName: 'ChartCard', | ||
fakeHeight: '524px', | ||
options: { | ||
chart: { | ||
type: 'scatter', | ||
zoomType: 'xy', | ||
}, | ||
title: { | ||
text: 'Institution Performance', | ||
}, | ||
xAxis: { | ||
title: { | ||
text: 'Contractual programme of an institution [number of programs in contract]', | ||
}, | ||
tickInterval: 10, | ||
zoomEnabled: true, | ||
}, | ||
yAxis: { | ||
title: { | ||
text: 'Number of services rendered', | ||
}, | ||
tickInterval: 5000, | ||
}, | ||
legend: { | ||
enabled: false, | ||
}, | ||
series: [ | ||
{ | ||
name: 'Zasebno', | ||
color: Highcharts.getOptions().colors[0], | ||
data: [ | ||
[5.896819161743402, 3372.1936129712194], | ||
[5.463782314232986, 3956.6672675724185], | ||
[4.0564125598241425, 3789.6747948292177], | ||
[4.0564125598241425, 3789.6747948292177], | ||
[3.2985980766809178, 3873.1710312008145], | ||
[3.2985980766809178, 3873.1710312008145], | ||
[2.7573020172929006, 8047.982849780827], | ||
[6.13900467860018, 5229.110813146421], | ||
[7.13900467860018, 5249.110813146421], | ||
], | ||
marker: { | ||
radius: 4, | ||
}, | ||
}, | ||
{ | ||
name: 'Javno', | ||
color: Highcharts.getOptions().colors[1], | ||
data: [ | ||
[4.0564125598241425, 3789.6747948292177], | ||
[4.0564125598241425, 3789.6747948292177], | ||
[4.0564125598241425, 3789.6747948292177], | ||
[3.2985980766809178, 3873.1710312008145], | ||
[3.2985980766809178, 3873.1710312008145], | ||
[3.2985980766809178, 3873.1710312008145], | ||
[5.63900467860018, 5239.110813146421], | ||
[5.33900467860018, 5219.110813146421], | ||
[5.53900467860018, 5259.110813146421], | ||
], | ||
marker: { | ||
radius: 4, | ||
symbol: 'circle', | ||
}, | ||
}, | ||
{ | ||
showInLegend: false, | ||
name: 'Regression Line (Private)', | ||
type: 'line', | ||
data: [ | ||
[0, 0], | ||
[30, 24000], | ||
], | ||
color: Highcharts.getOptions().colors[0], | ||
marker: { | ||
enabled: false, | ||
}, | ||
enableMouseTracking: false, | ||
}, | ||
{ | ||
showInLegend: false, | ||
name: 'Regression Line (Public)', | ||
type: 'line', | ||
data: [ | ||
[0, 0], | ||
[30, 41000], | ||
], | ||
color: Highcharts.getOptions().colors[1], | ||
marker: { | ||
enabled: false, | ||
}, | ||
enableMouseTracking: false, | ||
}, | ||
], | ||
annotations: [ | ||
{ | ||
labels: [ | ||
{ | ||
point: { x: 20, y: 18000, xAxis: 0, yAxis: 0 }, | ||
text: 'R²=0.600', | ||
style: { | ||
color: Highcharts.getOptions().colors[0], | ||
}, | ||
useHtml: true, | ||
}, | ||
{ | ||
point: { x: 20, y: 32000, xAxis: 0, yAxis: 0 }, | ||
text: 'R²=0.961', | ||
style: { | ||
color: Highcharts.getOptions().colors[1], | ||
}, | ||
useHtml: true, | ||
}, | ||
], | ||
labelOptions: { | ||
backgroundColor: 'rgba(255,255,255,0.5)', | ||
verticalAlign: 'bottom', | ||
borderColor: 'transparent', | ||
// y: 15, | ||
}, | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters