Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <script src="//www.amcharts.com/lib/4/core.js"></script>
    <script src="//www.amcharts.com/lib/4/charts.js"></script>
    <script src="https://www.amcharts.com/lib/4/themes/kelly.js"></script>
    <script src="//www.amcharts.com/lib/4/themes/animated.js"></script>

    <title>Incidents Weekly Heatmap</title>
    <link rel="stylesheet" href="index.css" />
  </head>
    
<script>
am4core.useTheme(am4themes_kelly);
am4core.useTheme(am4themes_animated);
</script>
    
    
  <body>
    <div id="chartdiv"></div>
    <script src="//www.amcharts.com/lib/4/core.js"></script>
    <script src="//www.amcharts.com/lib/4/charts.js"></script>
    <script src="https://www.amcharts.com/lib/4/themes/kelly.js"></script>
    <script src="//www.amcharts.com/lib/4/themes/animated.js"></script>

    <script src="index.js"></script>
  </body>
</html>
              
            
!

CSS

              
                body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: #30303d;
  color: #fff;
  overflow: hidden;
  margin: 0;
}

#chartdiv {
  width: 100%;
  height: 100vh;
  /*max-width: 1200px;*/
}
              
            
!

JS

              
                am4core.addLicense("CH211653105"); 
/* Chart code */
// Themes begin
am4core.useTheme(am4themes_kelly);
am4core.useTheme(am4themes_animated);
// Themes end


var chart = am4core.create("chartdiv", am4charts.XYChart);
chart.maskBullets = false;

var xAxis = chart.xAxes.push(new am4charts.CategoryAxis());
var yAxis = chart.yAxes.push(new am4charts.CategoryAxis());

xAxis.dataFields.category = "month";
xAxis.renderer.minGridDistance = 1;
yAxis.dataFields.category = "year";
xAxis.renderer.labels.template.location=1;
xAxis.renderer.labels.template.rotation = 60;
xAxis.renderer.labels.template.fontSize = 10;
xAxis.renderer.labels.template.fill = am4core.color("#ffffff");
//xAxis.renderer.labels.template.strokeWidth = 0.1;
yAxis.renderer.labels.template.fill = am4core.color("#ffffff");

xAxis.renderer.grid.template.disabled = false;
yAxis.renderer.grid.template.disabled = true;

yAxis.renderer.inversed = true;

var series = chart.series.push(new am4charts.ColumnSeries());
series.dataFields.categoryX = "month";
series.dataFields.categoryY = "year";
series.dataFields.value = "value";
series.columns.template.disabled = true;
series.sequencedInterpolation = true;




var bullet = series.bullets.push(new am4charts.CircleBullet());
bullet.tooltipText = "{month}, {year}: {value.workingValue.formatNumber('#.')} breakdowns";
bullet.strokeWidth = 3;
bullet.stroke = am4core.color("#ffffff");
bullet.strokeOpacity = 0;

bullet.adapter.add("tooltipY", function (tooltipY, target) {
	return -target.circle.radius + 1;
})

series.heatRules.push({property:"radius", target:bullet.circle, min:2, max:50});

bullet.hiddenState.properties.scale = 0.01;
bullet.hiddenState.properties.opacity = 1;

var hoverState = bullet.states.create("hover");
hoverState.properties.strokeOpacity = 1;

chart.data = [
	{
		"year": "2013",
		"month": "Jan/Week1",
		"value": 1
	},
	{
		"year": "2014",
		"month": "Jan/Week1",
		"value": 9
	},
	{
		"year": "2015",
		"month": "Jan/Week1",
		"value": 3
	},
	{
		"year": "2016",
		"month": "Jan/Week1",
		"value": 0
	},
	{
		"year": "2017",
		"month": "Jan/Week1",
		"value": 7
	},
	{
		"year": "2018",
		"month": "Jan/Week1",
		"value": 8
	},
	{
		"year": "2019",
		"month": "Jan/Week1",
		"value": 3
	},
    {
		"year": "2013",
		"month": "Jan/Week2",
		"value": 5
	},
	{
		"year": "2014",
		"month": "Jan/Week2",
		"value": 8
	},
	{
		"year": "2015",
		"month": "Jan/Week2",
		"value": 15
	},
	{
		"year": "2016",
		"month": "Jan/Week2",
		"value": 9
	},
	{
		"year": "2017",
		"month": "Jan/Week2",
		"value": 9
	},
	{
		"year": "2018",
		"month": "Jan/Week2",
		"value": 4
	},
	{
		"year": "2019",
		"month": "Jan/Week2",
		"value": 5
	},
    {
		"year": "2013",
		"month": "Jan/Week3",
		"value": 6
	},
	{
		"year": "2014",
		"month": "Jan/Week3",
		"value": 12
	},
	{
		"year": "2015",
		"month": "Jan/Week3",
		"value": 8
	},
	{
		"year": "2016",
		"month": "Jan/Week3",
		"value": 12
	},
	{
		"year": "2017",
		"month": "Jan/Week3",
		"value": 9
	},
	{
		"year": "2018",
		"month": "Jan/Week3",
		"value": 7
	},
	{
		"year": "2019",
		"month": "Jan/Week3",
		"value": 6
	},
     {
		"year": "2013",
		"month": "Jan/Week4",
		"value": 4
	},
	{
		"year": "2014",
		"month": "Jan/Week4",
		"value": 13
	},
	{
		"year": "2015",
		"month": "Jan/Week4",
		"value": 7
	},
	{
		"year": "2016",
		"month": "Jan/Week4",
		"value": 9
	},
	{
		"year": "2017",
		"month": "Jan/Week4",
		"value": 7
	},
	{
		"year": "2018",
		"month": "Jan/Week4",
		"value": 6
	},
	{
		"year": "2019",
		"month": "Jan/Week4",
		"value": 14
	},
    {
		"year": "2013",
		"month": "Feb/Week1",
		"value": 3
	},
	{
		"year": "2014",
		"month": "Feb/Week1",
		"value": 4
	},
	{
		"year": "2015",
		"month": "Feb/Week1",
		"value": 6
	},
	{
		"year": "2016",
		"month": "Feb/Week1",
		"value": 7
	},
	{
		"year": "2017",
		"month": "Feb/Week1",
		"value": 6
	},
	{
		"year": "2018",
		"month": "Feb/Week1",
		"value": 19
	},
	{
		"year": "2019",
		"month": "Feb/Week1",
		"value": 7
	},
    {
		"year": "2013",
		"month": "Feb/Week2",
		"value": 7
	},
	{
		"year": "2014",
		"month": "Feb/Week2",
		"value": 4
	},
	{
		"year": "2015",
		"month": "Feb/Week2",
		"value": 13
	},
	{
		"year": "2016",
		"month": "Feb/Week2",
		"value": 10
	},
	{
		"year": "2017",
		"month": "Feb/Week2",
		"value": 6
	},
	{
		"year": "2018",
		"month": "Feb/Week2",
		"value": 15
	},
	{
		"year": "2019",
		"month": "Feb/Week2",
		"value": 10
	},
    {
		"year": "2013",
		"month": "Feb/Week3",
		"value": 7
	},
	{
		"year": "2014",
		"month": "Feb/Week3",
		"value": 0
	},
	{
		"year": "2015",
		"month": "Feb/Week3",
		"value": 9
	},
	{
		"year": "2016",
		"month": "Feb/Week3",
		"value": 8
	},
	{
		"year": "2017",
		"month": "Feb/Week3",
		"value": 4
	},
	{
		"year": "2018",
		"month": "Feb/Week3",
		"value": 8
	},
	{
		"year": "2019",
		"month": "Feb/Week3",
		"value": 13
	},
    {
		"year": "2013",
		"month": "Feb/Week4",
		"value": 3
	},
	{
		"year": "2014",
		"month": "Feb/Week4",
		"value": 3
	},
	{
		"year": "2015",
		"month": "Feb/Week4",
		"value": 6
	},
	{
		"year": "2016",
		"month": "Feb/Week4",
		"value": 10
	},
	{
		"year": "2017",
		"month": "Feb/Week4",
		"value": 6
	},
	{
		"year": "2018",
		"month": "Feb/Week4",
		"value": 12
	},
	{
		"year": "2019",
		"month": "Feb/Week4",
		"value": 5
	},
    {
		"year": "2013",
		"month": "Mar/Week1",
		"value": 4
	},
	{
		"year": "2014",
		"month": "Mar/Week1",
		"value": 3
	},
	{
		"year": "2015",
		"month": "Mar/Week1",
		"value": 3
	},
	{
		"year": "2016",
		"month": "Mar/Week1",
		"value": 9
	},
	{
		"year": "2017",
		"month": "Mar/Week1",
		"value": 12
	},
	{
		"year": "2018",
		"month": "Mar/Week1",
		"value": 13
	},
	{
		"year": "2019",
		"month": "Mar/Week1",
		"value": 5
	},
     {
		"year": "2013",
		"month": "Mar/Week2",
		"value": 8
	},
	{
		"year": "2014",
		"month": "Mar/Week2",
		"value": 4
	},
	{
		"year": "2015",
		"month": "Mar/Week2",
		"value": 10
	},
	{
		"year": "2016",
		"month": "Mar/Week2",
		"value": 3
	},
	{
		"year": "2017",
		"month": "Mar/Week2",
		"value": 18
	},
	{
		"year": "2018",
		"month": "Mar/Week2",
		"value": 11
	},
	{
		"year": "2019",
		"month": "Mar/Week2",
		"value": 3
	},
     {
		"year": "2013",
		"month": "Mar/Week3",
		"value": 5
	},
	{
		"year": "2014",
		"month": "Mar/Week3",
		"value": 7
	},
	{
		"year": "2015",
		"month": "Mar/Week3",
		"value": 10
	},
	{
		"year": "2016",
		"month": "Mar/Week3",
		"value": 7
	},
	{
		"year": "2017",
		"month": "Mar/Week3",
		"value": 4
	},
	{
		"year": "2018",
		"month": "Mar/Week3",
		"value": 8
	},
	{
		"year": "2019",
		"month": "Mar/Week3",
		"value": 4
	},
     {
		"year": "2013",
		"month": "Mar/Week4",
		"value": 1
	},
	{
		"year": "2014",
		"month": "Mar/Week4",
		"value": 9
	},
	{
		"year": "2015",
		"month": "Mar/Week4",
		"value": 10
	},
	{
		"year": "2016",
		"month": "Mar/Week4",
		"value": 8
	},
	{
		"year": "2017",
		"month": "Mar/Week4",
		"value": 16
	},
	{
		"year": "2018",
		"month": "Mar/Week4",
		"value": 11
	},
	{
		"year": "2019",
		"month": "Mar/Week4",
		"value": 7
	},
    {
		"year": "2013",
		"month": "Apr/Week1",
		"value": 5
	},
	{
		"year": "2014",
		"month": "Apr/Week1",
		"value": 15
	},
	{
		"year": "2015",
		"month": "Apr/Week1",
		"value": 8
	},
	{
		"year": "2016",
		"month": "Apr/Week1",
		"value": 7
	},
	{
		"year": "2017",
		"month": "Apr/Week1",
		"value": 4
	},
	{
		"year": "2018",
		"month": "Apr/Week1",
		"value": 8
	},
	{
		"year": "2019",
		"month": "Apr/Week1",
		"value": 3
	},
    {
		"year": "2013",
		"month": "Apr/Week2",
		"value": 1
	},
	{
		"year": "2014",
		"month": "Apr/Week2",
		"value": 7
	},
	{
		"year": "2015",
		"month": "Apr/Week2",
		"value": 6
	},
	{
		"year": "2016",
		"month": "Apr/Week2",
		"value": 5
	},
	{
		"year": "2017",
		"month": "Apr/Week2",
		"value": 4
	},
	{
		"year": "2018",
		"month": "Apr/Week2",
		"value": 10
	},
	{
		"year": "2019",
		"month": "Apr/Week2",
		"value": 8
	},
    {
		"year": "2013",
		"month": "Apr/Week3",
		"value": 7
	},
	{
		"year": "2014",
		"month": "Apr/Week3",
		"value": 3
	},
	{
		"year": "2015",
		"month": "Apr/Week3",
		"value": 8
	},
	{
		"year": "2016",
		"month": "Apr/Week3",
		"value": 6
	},
	{
		"year": "2017",
		"month": "Apr/Week3",
		"value": 10
	},
	{
		"year": "2018",
		"month": "Apr/Week3",
		"value": 7
	},
	{
		"year": "2019",
		"month": "Apr/Week3",
		"value": 11
	},
    {
		"year": "2013",
		"month": "Apr/Week4",
		"value": 9
	},
	{
		"year": "2014",
		"month": "Apr/Week4",
		"value": 10
	},
	{
		"year": "2015",
		"month": "Apr/Week4",
		"value": 24
	},
	{
		"year": "2016",
		"month": "Apr/Week4",
		"value": 16
	},
	{
		"year": "2017",
		"month": "Apr/Week4",
		"value": 8
	},
	{
		"year": "2018",
		"month": "Apr/Week4",
		"value": 10
	},
	{
		"year": "2019",
		"month": "Apr/Week4",
		"value": 12
	},
    {
		"year": "2013",
		"month": "May/Week1",
		"value": 2
	},
	{
		"year": "2014",
		"month": "May/Week1",
		"value": 2
	},
	{
		"year": "2015",
		"month": "May/Week1",
		"value": 14
	},
	{
		"year": "2016",
		"month": "May/Week1",
		"value": 3
	},
	{
		"year": "2017",
		"month": "May/Week1",
		"value": 7
	},
	{
		"year": "2018",
		"month": "May/Week1",
		"value": 7
	},
	{
		"year": "2019",
		"month": "May/Week1",
		"value": 3
	},
    {
		"year": "2013",
		"month": "May/Week2",
		"value": 2
	},
	{
		"year": "2014",
		"month": "May/Week2",
		"value": 2
	},
	{
		"year": "2015",
		"month": "May/Week2",
		"value": 9
	},
	{
		"year": "2016",
		"month": "May/Week2",
		"value": 10
	},
	{
		"year": "2017",
		"month": "May/Week2",
		"value": 8
	},
	{
		"year": "2018",
		"month": "May/Week2",
		"value": 10
	},
	{
		"year": "2019",
		"month": "May/Week2",
		"value": 8
	},
        {
		"year": "2013",
		"month": "May/Week3",
		"value": 9
	},
	{
		"year": "2014",
		"month": "May/Week3",
		"value": 2
	},
	{
		"year": "2015",
		"month": "May/Week3",
		"value": 9
	},
	{
		"year": "2016",
		"month": "May/Week3",
		"value": 11
	},
	{
		"year": "2017",
		"month": "May/Week3",
		"value": 8
	},
	{
		"year": "2018",
		"month": "May/Week3",
		"value": 5
	},
	{
		"year": "2019",
		"month": "May/Week3",
		"value": 7
	},
        {
		"year": "2013",
		"month": "May/Week4",
		"value": 4
	},
	{
		"year": "2014",
		"month": "May/Week4",
		"value": 5
	},
	{
		"year": "2015",
		"month": "May/Week4",
		"value": 11
	},
	{
		"year": "2016",
		"month": "May/Week4",
		"value": 15
	},
	{
		"year": "2017",
		"month": "May/Week4",
		"value": 12
	},
	{
		"year": "2018",
		"month": "May/Week4",
		"value": 26
	},
	{
		"year": "2019",
		"month": "May/Week4",
		"value": 5
	},
    {
		"year": "2013",
		"month": "Jun/Week1",
		"value": 7
	},
	{
		"year": "2014",
		"month": "Jun/Week1",
		"value": 1
	},
	{
		"year": "2015",
		"month": "Jun/Week1",
		"value": 9
	},
	{
		"year": "2016",
		"month": "Jun/Week1",
		"value": 13
	},
	{
		"year": "2017",
		"month": "Jun/Week1",
		"value": 2
	},
	{
		"year": "2018",
		"month": "Jun/Week1",
		"value": 17
	},
	{
		"year": "2019",
		"month": "Jun/Week1",
		"value": 7
	},
    {
		"year": "2013",
		"month": "Jun/Week2",
		"value": 5
	},
	{
		"year": "2014",
		"month": "Jun/Week2",
		"value": 10
	},
	{
		"year": "2015",
		"month": "Jun/Week2",
		"value": 11
	},
	{
		"year": "2016",
		"month": "Jun/Week2",
		"value": 10
	},
	{
		"year": "2017",
		"month": "Jun/Week2",
		"value": 2
	},
	{
		"year": "2018",
		"month": "Jun/Week2",
		"value": 19
	},
	{
		"year": "2019",
		"month": "Jun/Week2",
		"value": 9
	},
        {
		"year": "2013",
		"month": "Jun/Week3",
		"value": 13
	},
	{
		"year": "2014",
		"month": "Jun/Week3",
		"value": 18
	},
	{
		"year": "2015",
		"month": "Jun/Week3",
		"value": 5
	},
	{
		"year": "2016",
		"month": "Jun/Week3",
		"value": 6
	},
	{
		"year": "2017",
		"month": "Jun/Week3",
		"value": 4
	},
	{
		"year": "2018",
		"month": "Jun/Week3",
		"value": 14
	},
	{
		"year": "2019",
		"month": "Jun/Week3",
		"value": 5
	},
        {
		"year": "2013",
		"month": "Jun/Week4",
		"value": 2
	},
	{
		"year": "2014",
		"month": "Jun/Week4",
		"value": 9
	},
	{
		"year": "2015",
		"month": "Jun/Week4",
		"value": 15
	},
	{
		"year": "2016",
		"month": "Jun/Week4",
		"value": 15
	},
	{
		"year": "2017",
		"month": "Jun/Week4",
		"value": 6
	},
	{
		"year": "2018",
		"month": "Jun/Week4",
		"value": 23
	},
	{
		"year": "2019",
		"month": "Jun/Week4",
		"value": 7
	},
    {
		"year": "2013",
		"month": "Jul/Week1",
		"value": 7
	},
	{
		"year": "2014",
		"month": "Jul/Week1",
		"value": 4
	},
	{
		"year": "2015",
		"month": "Jul/Week1",
		"value": 2
	},
	{
		"year": "2016",
		"month": "Jul/Week1",
		"value": 12
	},
	{
		"year": "2017",
		"month": "Jul/Week1",
		"value": 8
	},
	{
		"year": "2018",
		"month": "Jul/Week1",
		"value": 13
	},
	{
		"year": "2019",
		"month": "Jul/Week1",
		"value": 6
	},
    {
		"year": "2013",
		"month": "Jul/Week2",
		"value": 3
	},
	{
		"year": "2014",
		"month": "Jul/Week2",
		"value": 5
	},
	{
		"year": "2015",
		"month": "Jul/Week2",
		"value": 3
	},
	{
		"year": "2016",
		"month": "Jul/Week2",
		"value": 2
	},
	{
		"year": "2017",
		"month": "Jul/Week2",
		"value": 5
	},
	{
		"year": "2018",
		"month": "Jul/Week2",
		"value": 8
	},
	{
		"year": "2019",
		"month": "Jul/Week2",
		"value": 7
	},
    {
		"year": "2013",
		"month": "Jul/Week3",
		"value": 4
	},
	{
		"year": "2014",
		"month": "Jul/Week3",
		"value": 0
	},
	{
		"year": "2015",
		"month": "Jul/Week3",
		"value": 5
	},
	{
		"year": "2016",
		"month": "Jul/Week3",
		"value": 8
	},
	{
		"year": "2017",
		"month": "Jul/Week3",
		"value": 9
	},
	{
		"year": "2018",
		"month": "Jul/Week3",
		"value": 5
	},
	{
		"year": "2019",
		"month": "Jul/Week3",
		"value": 7
	},
        {
		"year": "2013",
		"month": "Jul/Week4",
		"value": 2
	},
	{
		"year": "2014",
		"month": "Jul/Week4",
		"value": 0
	},
	{
		"year": "2015",
		"month": "Jul/Week4",
		"value": 4
	},
	{
		"year": "2016",
		"month": "Jul/Week4",
		"value": 8
	},
	{
		"year": "2017",
		"month": "Jul/Week4",
		"value": 10
	},
	{
		"year": "2018",
		"month": "Jul/Week4",
		"value": 8
	},
	{
		"year": "2019",
		"month": "Jul/Week4",
		"value": 15
	},
    {
		"year": "2013",
		"month": "Aug/Week1",
		"value": 4
	},
	{
		"year": "2014",
		"month": "Aug/Week1",
		"value": 0
	},
	{
		"year": "2015",
		"month": "Aug/Week1",
		"value": 5
	},
	{
		"year": "2016",
		"month": "Aug/Week1",
		"value": 4
	},
	{
		"year": "2017",
		"month": "Aug/Week1",
		"value": 0
	},
	{
		"year": "2018",
		"month": "Aug/Week1",
		"value": 5
	},
	{
		"year": "2019",
		"month": "Aug/Week1",
		"value": 4
	},
    {
		"year": "2013",
		"month": "Aug/Week2",
		"value": 2
	},
	{
		"year": "2014",
		"month": "Aug/Week2",
		"value": 0
	},
	{
		"year": "2015",
		"month": "Aug/Week2",
		"value": 2
	},
	{
		"year": "2016",
		"month": "Aug/Week2",
		"value": 7
	},
	{
		"year": "2017",
		"month": "Aug/Week2",
		"value": 3
	},
	{
		"year": "2018",
		"month": "Aug/Week2",
		"value": 0
	},
	{
		"year": "2019",
		"month": "Aug/Week2",
		"value": 6
	},
    {
		"year": "2013",
		"month": "Aug/Week3",
		"value": 11
	},
	{
		"year": "2014",
		"month": "Aug/Week3",
		"value": 3
	},
	{
		"year": "2015",
		"month": "Aug/Week3",
		"value": 7
	},
	{
		"year": "2016",
		"month": "Aug/Week3",
		"value": 3
	},
	{
		"year": "2017",
		"month": "Aug/Week3",
		"value": 2
	},
	{
		"year": "2018",
		"month": "Aug/Week3",
		"value": 9
	},
	{
		"year": "2019",
		"month": "Aug/Week3",
		"value": 7
	},
        {
		"year": "2013",
		"month": "Aug/Week4",
		"value": 8
	},
	{
		"year": "2014",
		"month": "Aug/Week4",
		"value": 5
	},
	{
		"year": "2015",
		"month": "Aug/Week4",
		"value": 19
	},
	{
		"year": "2016",
		"month": "Aug/Week4",
		"value": 12
	},
	{
		"year": "2017",
		"month": "Aug/Week4",
		"value": 6
	},
	{
		"year": "2018",
		"month": "Aug/Week4",
		"value": 10
	},
	{
		"year": "2019",
		"month": "Aug/Week4",
		"value": 18
	},
    {
		"year": "2013",
		"month": "Sep/Week1",
		"value": 13
	},
	{
		"year": "2014",
		"month": "Sep/Week1",
		"value": 2
	},
	{
		"year": "2015",
		"month": "Sep/Week1",
		"value": 6
	},
	{
		"year": "2016",
		"month": "Sep/Week1",
		"value": 3
	},
	{
		"year": "2017",
		"month": "Sep/Week1",
		"value": 9
	},
	{
		"year": "2018",
		"month": "Sep/Week1",
		"value": 7
	},
	{
		"year": "2019",
		"month": "Sep/Week1",
		"value": 7
	},
    {
		"year": "2013",
		"month": "Sep/Week2",
		"value": 4
	},
	{
		"year": "2014",
		"month": "Sep/Week2",
		"value": 8
	},
	{
		"year": "2015",
		"month": "Sep/Week2",
		"value": 2
	},
	{
		"year": "2016",
		"month": "Sep/Week2",
		"value": 7
	},
	{
		"year": "2017",
		"month": "Sep/Week2",
		"value": 8
	},
	{
		"year": "2018",
		"month": "Sep/Week2",
		"value": 5
	},
	{
		"year": "2019",
		"month": "Sep/Week2",
		"value": 8
	},
        {
		"year": "2013",
		"month": "Sep/Week3",
		"value": 3
	},
	{
		"year": "2014",
		"month": "Sep/Week3",
		"value": 2
	},
	{
		"year": "2015",
		"month": "Sep/Week3",
		"value": 8
	},
	{
		"year": "2016",
		"month": "Sep/Week3",
		"value": 3
	},
	{
		"year": "2017",
		"month": "Sep/Week3",
		"value": 18
	},
	{
		"year": "2018",
		"month": "Sep/Week3",
		"value": 5
	},
	{
		"year": "2019",
		"month": "Sep/Week3",
		"value": 16
	},
        {
		"year": "2013",
		"month": "Sep/Week4",
		"value": 9
	},
	{
		"year": "2014",
		"month": "Sep/Week4",
		"value": 2
	},
	{
		"year": "2015",
		"month": "Sep/Week4",
		"value": 5
	},
	{
		"year": "2016",
		"month": "Sep/Week4",
		"value": 8
	},
	{
		"year": "2017",
		"month": "Sep/Week4",
		"value": 8
	},
	{
		"year": "2018",
		"month": "Sep/Week4",
		"value": 8
	},
	{
		"year": "2019",
		"month": "Sep/Week4",
		"value": 6
	},
    {
		"year": "2013",
		"month": "Oct/Week1",
		"value": 9
	},
	{
		"year": "2014",
		"month": "Oct/Week1",
		"value": 5
	},
	{
		"year": "2015",
		"month": "Oct/Week1",
		"value": 5
	},
	{
		"year": "2016",
		"month": "Oct/Week1",
		"value": 5
	},
	{
		"year": "2017",
		"month": "Oct/Week1",
		"value": 8
	},
	{
		"year": "2018",
		"month": "Oct/Week1",
		"value": 13
	},
	{
		"year": "2019",
		"month": "Oct/Week1",
		"value": 4
	},
        {
		"year": "2013",
		"month": "Oct/Week2",
		"value": 1
	},
	{
		"year": "2014",
		"month": "Oct/Week2",
		"value": 5
	},
	{
		"year": "2015",
		"month": "Oct/Week2",
		"value": 7
	},
	{
		"year": "2016",
		"month": "Oct/Week2",
		"value": 7
	},
	{
		"year": "2017",
		"month": "Oct/Week2",
		"value": 11
	},
	{
		"year": "2018",
		"month": "Oct/Week2",
		"value": 7
	},
	{
		"year": "2019",
		"month": "Oct/Week2",
		"value": 16
	},
        {
		"year": "2013",
		"month": "Oct/Week3",
		"value": 9
	},
	{
		"year": "2014",
		"month": "Oct/Week3",
		"value": 11
	},
	{
		"year": "2015",
		"month": "Oct/Week3",
		"value": 4
	},
	{
		"year": "2016",
		"month": "Oct/Week3",
		"value": 10
	},
	{
		"year": "2017",
		"month": "Oct/Week3",
		"value": 10
	},
	{
		"year": "2018",
		"month": "Oct/Week3",
		"value": 1
	},
	{
		"year": "2019",
		"month": "Oct/Week3",
		"value": 12
	},
        {
		"year": "2013",
		"month": "Oct/Week4",
		"value": 15
	},
	{
		"year": "2014",
		"month": "Oct/Week4",
		"value": 8
	},
	{
		"year": "2015",
		"month": "Oct/Week4",
		"value": 17
	},
	{
		"year": "2016",
		"month": "Oct/Week4",
		"value": 21
	},
	{
		"year": "2017",
		"month": "Oct/Week4",
		"value": 19
	},
	{
		"year": "2018",
		"month": "Oct/Week4",
		"value": 12
	},
	{
		"year": "2019",
		"month": "Oct/Week4",
		"value": 18
	},
    {
		"year": "2013",
		"month": "Nov/Week1",
		"value": 10
	},
	{
		"year": "2014",
		"month": "Nov/Week1",
		"value": 6
	},
	{
		"year": "2015",
		"month": "Nov/Week1",
		"value": 5
	},
	{
		"year": "2016",
		"month": "Nov/Week1",
		"value": 8
	},
	{
		"year": "2017",
		"month": "Nov/Week1",
		"value": 5
	},
	{
		"year": "2018",
		"month": "Nov/Week1",
		"value": 4
	},
	{
		"year": "2019",
		"month": "Nov/Week1",
		"value": 6
	},
        {
		"year": "2013",
		"month": "Nov/Week2",
		"value": 11
	},
	{
		"year": "2014",
		"month": "Nov/Week2",
		"value": 6
	},
	{
		"year": "2015",
		"month": "Nov/Week2",
		"value": 6
	},
	{
		"year": "2016",
		"month": "Nov/Week2",
		"value": 12
	},
	{
		"year": "2017",
		"month": "Nov/Week2",
		"value": 13
	},
	{
		"year": "2018",
		"month": "Nov/Week2",
		"value": 7
	},
	{
		"year": "2019",
		"month": "Nov/Week2",
		"value": 8
	},
        {
		"year": "2013",
		"month": "Nov/Week3",
		"value": 9
	},
	{
		"year": "2014",
		"month": "Nov/Week3",
		"value": 9
	},
	{
		"year": "2015",
		"month": "Nov/Week3",
		"value": 18
	},
	{
		"year": "2016",
		"month": "Nov/Week3",
		"value": 18
	},
	{
		"year": "2017",
		"month": "Nov/Week3",
		"value": 5
	},
	{
		"year": "2018",
		"month": "Nov/Week3",
		"value": 10
	},
	{
		"year": "2019",
		"month": "Nov/Week3",
		"value": 11
	},
        {
		"year": "2013",
		"month": "Nov/Week4",
		"value": 7
	},
	{
		"year": "2014",
		"month": "Nov/Week4",
		"value": 6
	},
	{
		"year": "2015",
		"month": "Nov/Week4",
		"value": 14
	},
	{
		"year": "2016",
		"month": "Nov/Week4",
		"value": 14
	},
	{
		"year": "2017",
		"month": "Nov/Week4",
		"value": 13
	},
	{
		"year": "2018",
		"month": "Nov/Week4",
		"value": 8
	},
	{
		"year": "2019",
		"month": "Nov/Week4",
		"value": 5
	},
     {
		"year": "2013",
		"month": "Dec/Week1",
		"value": 6
	},
	{
		"year": "2014",
		"month": "Dec/Week1",
		"value": 7
	},
	{
		"year": "2015",
		"month": "Dec/Week1",
		"value": 6
	},
	{
		"year": "2016",
		"month": "Dec/Week1",
		"value": 11
	},
	{
		"year": "2017",
		"month": "Dec/Week1",
		"value": 9
	},
	{
		"year": "2018",
		"month": "Dec/Week1",
		"value": 6
	},
	{
		"year": "2019",
		"month": "Dec/Week1",
		"value": 0
	},
         {
		"year": "2013",
		"month": "Dec/Week2",
		"value": 5
	},
	{
		"year": "2014",
		"month": "Dec/Week2",
		"value": 0
	},
	{
		"year": "2015",
		"month": "Dec/Week2",
		"value": 9
	},
	{
		"year": "2016",
		"month": "Dec/Week2",
		"value": 4
	},
	{
		"year": "2017",
		"month": "Dec/Week2",
		"value": 13
	},
	{
		"year": "2018",
		"month": "Dec/Week2",
		"value": 6
	},
	{
		"year": "2019",
		"month": "Dec/Week2",
		"value": 0
	},
         {
		"year": "2013",
		"month": "Dec/Week3",
		"value": 5
	},
	{
		"year": "2014",
		"month": "Dec/Week3",
		"value": 7
	},
	{
		"year": "2015",
		"month": "Dec/Week3",
		"value": 16
	},
	{
		"year": "2016",
		"month": "Dec/Week3",
		"value": 5
	},
	{
		"year": "2017",
		"month": "Dec/Week3",
		"value": 12
	},
	{
		"year": "2018",
		"month": "Dec/Week3",
		"value": 7
	},
	{
		"year": "2019",
		"month": "Dec/Week3",
		"value": 0
	},
         {
		"year": "2013",
		"month": "Dec/Week4",
		"value": 2
	},
	{
		"year": "2014",
		"month": "Dec/Week4",
		"value": 9
	},
	{
		"year": "2015",
		"month": "Dec/Week4",
		"value": 4
	},
	{
		"year": "2016",
		"month": "Dec/Week4",
		"value": 5
	},
	{
		"year": "2017",
		"month": "Dec/Week4",
		"value": 6
	},
	{
		"year": "2018",
		"month": "Dec/Week4",
		"value": 3
	},
	{
		"year": "2019",
		"month": "Dec/Week4",
		"value": 0
	},
];

// category axis
//var categoryAxis = chart.xAxes.push(new am4charts.CategoryAxis());
//categoryAxis.renderer.grid.template.location =0;
//categoryAxis.dataFields.category = "dateInMonth";

//var categoryAxisRenderer = categoryAxis.renderer;
//var categoryAxisLabel = categoryAxisRenderer.labels.template;
//categoryAxisLabel.location = 0.5;
//categoryAxisLabel.radius = 30;
//categoryAxisLabel.relativeRotation = 90;
//categoryAxisLabel.disabled=true;

//categoryAxisRenderer.fontSize = 9;
//categoryAxisRenderer.minGridDistance = 0.5;
//categoryAxisRenderer.grid.template.radius = -20;
//categoryAxisRenderer.grid.template.strokeOpacity = 0.03;
//categoryAxisRenderer.grid.template.interactionsEnabled = false;

//categoryAxisRenderer.ticks.template.disabled = false;
//categoryAxisRenderer.axisFills.template.disabled = false;
//categoryAxisRenderer.line.disabled = true;

//categoryAxisRenderer.tooltipLocation = 0.5;
//categoryAxis.tooltip.defaultState.properties.opacity = 0

chart.scrollbarX = new am4core.Scrollbar();
chart.scrollbarX.exportable = false;

              
            
!
999px

Console