Small multiples: focus series against a grey background
Time series charts in CanvasXpress show how values change over calendar time: annual, monthly and daily series as lines, step lines, areas, columns and small multiples, with confidence bands, projections, shaded periods, event callouts, dual axes and direct end labels. These examples recreate editorial chart idioms (the Datawrapper reference set) with synthetic data and publication-style themes; every one of them is an ordinary Scatter2D, Line, Area, AreaLine, Bar, BarLine or Stacked configuration, so the same options apply to your own dated data.
<html>
<head>
<!-- Include the CanvasXpress library in your HTML file -->
<link rel="stylesheet" href="https://www.canvasxpress.org/dist/canvasXpress.css" type="text/css"/>
<script src="https://www.canvasxpress.org/dist/canvasXpress.min.js"></script>
</head>
<body>
<!-- Create a canvas element for the chart with the desired dimensions -->
<div>
<canvas id="canvasId" width="600" height="600"></canvas>
</div>
<!-- Create a script to initialize the chart -->
<script>
// Use a data frame (2D-array) for the graph
var data =
// Create the configuration for the graph
var config = {
"graphType" : "Line",
"theme" : "classic",
"titleAlign" : "plot::0",
"subtitleAlign" : "plot::0",
"graphOrientation" : "vertical",
"segregateVariablesBy" : [
"Panel"
],
"layoutTopology" : "1X4",
"colorScheme" : "User",
"colors" : [
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d6007b",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d6007b",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d6007b",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d6007b"
],
"showLegend" : false,
"lineThickness" : 3,
"smpLabelInterval" : 28,
"smpTextRotate" : 90,
"smpTextScaleFontFactor" : 0.9,
"smpTitle" : "",
"xAxisTitle" : "",
"xAxisGridMajorShow" : true,
"xAxisGridMajorColor" : "#e6e6e6",
"layoutSpacing" : 28,
"stripBackgroundColor" : "rgba(255,255,255,0)",
"stripBackgroundBorderColor" : "rgba(255,255,255,0)",
"stripTextAlign" : "left",
"stripTextColor" : "#111111",
"stripTextFontStyle" : "bold",
"xAxisShow" : true,
"title" : "People everywhere are getting taller, at different rates",
"subtitle" : "Average height (cm) of men by birth-year cohort in four countries (colour) against 14 other countries (grey)",
"source" : "Synthetic data for illustration",
"byline" : "Chart: CanvasXpress",
"showDataDownload" : false
}
// Event used to create graph (optional)
var events = false
// Call the CanvasXpress function to create the graph
var cX = new CanvasXpress("canvasId", data, config, events);
</script>
</body>
</html>
<html>
<head>
<!-- Include the CanvasXpress library in your HTML file -->
<link rel="stylesheet" href="https://www.canvasxpress.org/dist/canvasXpress.css" type="text/css"/>
<script src="https://www.canvasxpress.org/dist/canvasXpress.min.js"></script>
</head>
<body>
<!-- Create a canvas element for the chart with the desired dimensions -->
<div>
<canvas id="canvasId" width="600" height="600"></canvas>
</div>
<!-- Create a script to initialize the chart -->
<script>
// Create the data for the graph
var data = {
"y" : {
"vars" : [
"bg0_0",
"bg0_1",
"bg0_2",
"bg0_3",
"bg0_4",
"bg0_5",
"bg0_6",
"bg0_7",
"bg0_8",
"bg0_9",
"bg0_10",
"bg0_11",
"bg0_12",
"bg0_13",
"focus0",
"bg1_0",
"bg1_1",
"bg1_2",
"bg1_3",
"bg1_4",
"bg1_5",
"bg1_6",
"bg1_7",
"bg1_8",
"bg1_9",
"bg1_10",
"bg1_11",
"bg1_12",
"bg1_13",
"focus1",
"bg2_0",
"bg2_1",
"bg2_2",
"bg2_3",
"bg2_4",
"bg2_5",
"bg2_6",
"bg2_7",
"bg2_8",
"bg2_9",
"bg2_10",
"bg2_11",
"bg2_12",
"bg2_13",
"focus2",
"bg3_0",
"bg3_1",
"bg3_2",
"bg3_3",
"bg3_4",
"bg3_5",
"bg3_6",
"bg3_7",
"bg3_8",
"bg3_9",
"bg3_10",
"bg3_11",
"bg3_12",
"bg3_13",
"focus3"
],
"smps" : [
"1850 ",
"1855s",
"1860s",
"1865s",
"1870s",
"1875s",
"1880s",
"1885s",
"1890s",
"1895s",
"1900s",
"1905s",
"1910s",
"1915s",
"1920s",
"1925s",
"1930s",
"1935s",
"1940s",
"1945s",
"1950s",
"1955s",
"1960s",
"1965s",
"1970s",
"1975s",
"1980s",
"1985s",
"1990 "
],
"data" : [
[
165.97,
166.49,
165.94,
166.78,
166.05,
167.2,
168.13,
168.05,
169.1,
169.13,
171.18,
170.99,
172.13,
172.36,
172.56,
171.35,
171.03,
170.7,
170.92,
170.95,
170.71,
171.04,
170.47,
170.21,
170.75,
172.44,
173.15,
173.98,
174.71
],
[
161.72,
161.87,
161.64,
163.19,
164.14,
164.15,
165.23,
165.93,
166.78,
166.84,
167.98,
167.89,
167.56,
167.64,
167.13,
166.62,
166.29,
165.11,
165.12,
166.08,
166.6,
166.93,
167.73,
168.02,
169.41,
169.6,
170.87,
171.26,
170.84
],
[
164.22,
163.95,
164.23,
163.63,
165.4,
166.1,
167.65,
167.61,
168.17,
168.89,
169.41,
171.24,
171.11,
170.39,
170.17,
170.83,
171.06,
169.1,
169.37,
170.08,
170.19,
170.09,
170.66,
171.12,
171.2,
171.97,
172.85,
174.14,
174.28
],
[
158.78,
159.88,
161.67,
163.19,
164.53,
165.68,
166.78,
166.28,
167.06,
168.02,
167.89,
167.62,
168.83,
169.02,
168.16,
169.15,
170.12,
170.89,
170.66,
172.71,
173.56,
174.47,
176.46,
176.39,
178.48,
178.92,
179.59,
181.02,
180.2
],
[
157.59,
158.14,
156.95,
157.55,
158.55,
158.42,
158.68,
159.78,
159.69,
161.99,
161.5,
162.71,
163.33,
163.69,
164.8,
164.86,
165.33,
165.43,
164.73,
163.45,
163.88,
163.91,
164.07,
163.89,
163.75,
165.46,
166.17,
166.87,
167.37
],
[
154.45,
154.82,
155.64,
156.03,
157.34,
157.23,
157.33,
158.05,
157.71,
158.9,
157.8,
157.85,
156.88,
157.28,
156.09,
157.29,
157.09,
157.56,
159.02,
158.31,
159.73,
160.44,
161.18,
161.37,
162.62,
163.33,
163.23,
162.8,
161.72
],
[
166.44,
168.61,
169.04,
169.54,
170.29,
170.34,
170.06,
171.33,
170.32,
170.69,
170.37,
170.61,
170.14,
169.83,
171.09,
170.49,
172.52,
172.91,
173.96,
174.65,
175.67,
176.74,
176.92,
177.5,
178.36,
178.47,
178.24,
177.79,
177.45
],
[
160.75,
163.33,
163.8,
164.96,
165.24,
165.95,
166.76,
166.45,
166.46,
166.35,
166.98,
166.88,
166.94,
167.59,
168.24,
168.61,
169.26,
170.03,
170.66,
173,
173.48,
173.91,
175.37,
176.72,
176.92,
177.21,
177.72,
178.37,
177.12
],
[
163.75,
164.74,
166.42,
166.44,
166.5,
168.07,
169.46,
169.75,
171.04,
172.33,
174.31,
173.3,
174.29,
174.65,
174.58,
175.28,
174.18,
174.22,
175.2,
174.73,
176.65,
176.33,
177.38,
177.36,
179.95,
180.84,
181.11,
182.74,
183.86
],
[
154.82,
155.11,
156.46,
156.86,
158.47,
160.96,
160.97,
162.52,
162.82,
164.27,
164.12,
164.18,
165.76,
166.49,
166.48,
166.8,
166.29,
167.14,
166.12,
166.68,
168.56,
167.88,
169.4,
171.12,
171.55,
172.49,
174.96,
174.78,
175.96
],
[
168.42,
169.12,
169.51,
172.18,
172,
172.79,
175.05,
174.68,
175.84,
176.09,
176.26,
176.24,
176.32,
175.57,
175.21,
175.35,
175.46,
175.66,
176.64,
176.95,
178.53,
178.47,
179.53,
181.5,
182.85,
183.67,
183.63,
184.06,
184.76
],
[
166.74,
168.02,
170.09,
168,
169.86,
170.1,
170.57,
169.84,
169.3,
169.57,
169.74,
169.51,
169.49,
170.43,
170.44,
172.39,
171.98,
173.2,
174.76,
175.45,
176.09,
176.43,
177.45,
177.12,
178.47,
177.6,
177.66,
178.14,
178.35
],
[
155.01,
156.57,
158.42,
158.17,
158.82,
161.6,
161.79,
162.77,
162.84,
163.93,
165.12,
164.32,
165.54,
164.18,
164.1,
164.2,
166.25,
166.32,
166.07,
166.71,
166.42,
168.62,
170.21,
171.58,
171.48,
173.08,
174.49,
174.61,
175.79
],
[
169.77,
171.34,
171.91,
172.8,
172.66,
174.37,
173.97,
173.78,
173.72,
174.5,
174.42,
174.58,
175.2,
176.49,
176.94,
178.19,
180.03,
180.25,
182.6,
182.55,
184.9,
185.4,
186.17,
185.77,
187.04,
186.38,
187.85,
187.06,
187.58
],
[
168.13,
169.76,
170.87,
172.73,
172.1,
173.08,
173.08,
173.65,
173.1,
173.48,
172.8,
173.28,
173.5,
174.97,
174.57,
176.87,
177.84,
180.13,
180.55,
181.83,
183.35,
183.65,
184.63,
183.61,
184.11,
184.64,
182.53,
183.38,
184.31
],
[
165.97,
166.49,
165.94,
166.78,
166.05,
167.2,
168.13,
168.05,
169.1,
169.13,
171.18,
170.99,
172.13,
172.36,
172.56,
171.35,
171.03,
170.7,
170.92,
170.95,
170.71,
171.04,
170.47,
170.21,
170.75,
172.44,
173.15,
173.98,
174.71
],
[
161.72,
161.87,
161.64,
163.19,
164.14,
164.15,
165.23,
165.93,
166.78,
166.84,
167.98,
167.89,
167.56,
167.64,
167.13,
166.62,
166.29,
165.11,
165.12,
166.08,
166.6,
166.93,
167.73,
168.02,
169.41,
169.6,
170.87,
171.26,
170.84
],
[
164.22,
163.95,
164.23,
163.63,
165.4,
166.1,
167.65,
167.61,
168.17,
168.89,
169.41,
171.24,
171.11,
170.39,
170.17,
170.83,
171.06,
169.1,
169.37,
170.08,
170.19,
170.09,
170.66,
171.12,
171.2,
171.97,
172.85,
174.14,
174.28
],
[
158.78,
159.88,
161.67,
163.19,
164.53,
165.68,
166.78,
166.28,
167.06,
168.02,
167.89,
167.62,
168.83,
169.02,
168.16,
169.15,
170.12,
170.89,
170.66,
172.71,
173.56,
174.47,
176.46,
176.39,
178.48,
178.92,
179.59,
181.02,
180.2
],
[
157.59,
158.14,
156.95,
157.55,
158.55,
158.42,
158.68,
159.78,
159.69,
161.99,
161.5,
162.71,
163.33,
163.69,
164.8,
164.86,
165.33,
165.43,
164.73,
163.45,
163.88,
163.91,
164.07,
163.89,
163.75,
165.46,
166.17,
166.87,
167.37
],
[
154.45,
154.82,
155.64,
156.03,
157.34,
157.23,
157.33,
158.05,
157.71,
158.9,
157.8,
157.85,
156.88,
157.28,
156.09,
157.29,
157.09,
157.56,
159.02,
158.31,
159.73,
160.44,
161.18,
161.37,
162.62,
163.33,
163.23,
162.8,
161.72
],
[
166.44,
168.61,
169.04,
169.54,
170.29,
170.34,
170.06,
171.33,
170.32,
170.69,
170.37,
170.61,
170.14,
169.83,
171.09,
170.49,
172.52,
172.91,
173.96,
174.65,
175.67,
176.74,
176.92,
177.5,
178.36,
178.47,
178.24,
177.79,
177.45
],
[
160.75,
163.33,
163.8,
164.96,
165.24,
165.95,
166.76,
166.45,
166.46,
166.35,
166.98,
166.88,
166.94,
167.59,
168.24,
168.61,
169.26,
170.03,
170.66,
173,
173.48,
173.91,
175.37,
176.72,
176.92,
177.21,
177.72,
178.37,
177.12
],
[
163.75,
164.74,
166.42,
166.44,
166.5,
168.07,
169.46,
169.75,
171.04,
172.33,
174.31,
173.3,
174.29,
174.65,
174.58,
175.28,
174.18,
174.22,
175.2,
174.73,
176.65,
176.33,
177.38,
177.36,
179.95,
180.84,
181.11,
182.74,
183.86
],
[
154.82,
155.11,
156.46,
156.86,
158.47,
160.96,
160.97,
162.52,
162.82,
164.27,
164.12,
164.18,
165.76,
166.49,
166.48,
166.8,
166.29,
167.14,
166.12,
166.68,
168.56,
167.88,
169.4,
171.12,
171.55,
172.49,
174.96,
174.78,
175.96
],
[
168.42,
169.12,
169.51,
172.18,
172,
172.79,
175.05,
174.68,
175.84,
176.09,
176.26,
176.24,
176.32,
175.57,
175.21,
175.35,
175.46,
175.66,
176.64,
176.95,
178.53,
178.47,
179.53,
181.5,
182.85,
183.67,
183.63,
184.06,
184.76
],
[
166.74,
168.02,
170.09,
168,
169.86,
170.1,
170.57,
169.84,
169.3,
169.57,
169.74,
169.51,
169.49,
170.43,
170.44,
172.39,
171.98,
173.2,
174.76,
175.45,
176.09,
176.43,
177.45,
177.12,
178.47,
177.6,
177.66,
178.14,
178.35
],
[
155.01,
156.57,
158.42,
158.17,
158.82,
161.6,
161.79,
162.77,
162.84,
163.93,
165.12,
164.32,
165.54,
164.18,
164.1,
164.2,
166.25,
166.32,
166.07,
166.71,
166.42,
168.62,
170.21,
171.58,
171.48,
173.08,
174.49,
174.61,
175.79
],
[
169.77,
171.34,
171.91,
172.8,
172.66,
174.37,
173.97,
173.78,
173.72,
174.5,
174.42,
174.58,
175.2,
176.49,
176.94,
178.19,
180.03,
180.25,
182.6,
182.55,
184.9,
185.4,
186.17,
185.77,
187.04,
186.38,
187.85,
187.06,
187.58
],
[
162.05,
163.14,
163.24,
163.77,
163.62,
163.55,
163.34,
163.71,
163.1,
163.18,
163.53,
165.38,
166.34,
167.78,
168.22,
170.03,
172.34,
172.75,
174.23,
173.69,
173.36,
173.65,
172.55,
172.36,
173.49,
172.63,
173.66,
174.04,
175.84
],
[
165.97,
166.49,
165.94,
166.78,
166.05,
167.2,
168.13,
168.05,
169.1,
169.13,
171.18,
170.99,
172.13,
172.36,
172.56,
171.35,
171.03,
170.7,
170.92,
170.95,
170.71,
171.04,
170.47,
170.21,
170.75,
172.44,
173.15,
173.98,
174.71
],
[
161.72,
161.87,
161.64,
163.19,
164.14,
164.15,
165.23,
165.93,
166.78,
166.84,
167.98,
167.89,
167.56,
167.64,
167.13,
166.62,
166.29,
165.11,
165.12,
166.08,
166.6,
166.93,
167.73,
168.02,
169.41,
169.6,
170.87,
171.26,
170.84
],
[
164.22,
163.95,
164.23,
163.63,
165.4,
166.1,
167.65,
167.61,
168.17,
168.89,
169.41,
171.24,
171.11,
170.39,
170.17,
170.83,
171.06,
169.1,
169.37,
170.08,
170.19,
170.09,
170.66,
171.12,
171.2,
171.97,
172.85,
174.14,
174.28
],
[
158.78,
159.88,
161.67,
163.19,
164.53,
165.68,
166.78,
166.28,
167.06,
168.02,
167.89,
167.62,
168.83,
169.02,
168.16,
169.15,
170.12,
170.89,
170.66,
172.71,
173.56,
174.47,
176.46,
176.39,
178.48,
178.92,
179.59,
181.02,
180.2
],
[
157.59,
158.14,
156.95,
157.55,
158.55,
158.42,
158.68,
159.78,
159.69,
161.99,
161.5,
162.71,
163.33,
163.69,
164.8,
164.86,
165.33,
165.43,
164.73,
163.45,
163.88,
163.91,
164.07,
163.89,
163.75,
165.46,
166.17,
166.87,
167.37
],
[
154.45,
154.82,
155.64,
156.03,
157.34,
157.23,
157.33,
158.05,
157.71,
158.9,
157.8,
157.85,
156.88,
157.28,
156.09,
157.29,
157.09,
157.56,
159.02,
158.31,
159.73,
160.44,
161.18,
161.37,
162.62,
163.33,
163.23,
162.8,
161.72
],
[
166.44,
168.61,
169.04,
169.54,
170.29,
170.34,
170.06,
171.33,
170.32,
170.69,
170.37,
170.61,
170.14,
169.83,
171.09,
170.49,
172.52,
172.91,
173.96,
174.65,
175.67,
176.74,
176.92,
177.5,
178.36,
178.47,
178.24,
177.79,
177.45
],
[
160.75,
163.33,
163.8,
164.96,
165.24,
165.95,
166.76,
166.45,
166.46,
166.35,
166.98,
166.88,
166.94,
167.59,
168.24,
168.61,
169.26,
170.03,
170.66,
173,
173.48,
173.91,
175.37,
176.72,
176.92,
177.21,
177.72,
178.37,
177.12
],
[
163.75,
164.74,
166.42,
166.44,
166.5,
168.07,
169.46,
169.75,
171.04,
172.33,
174.31,
173.3,
174.29,
174.65,
174.58,
175.28,
174.18,
174.22,
175.2,
174.73,
176.65,
176.33,
177.38,
177.36,
179.95,
180.84,
181.11,
182.74,
183.86
],
[
154.82,
155.11,
156.46,
156.86,
158.47,
160.96,
160.97,
162.52,
162.82,
164.27,
164.12,
164.18,
165.76,
166.49,
166.48,
166.8,
166.29,
167.14,
166.12,
166.68,
168.56,
167.88,
169.4,
171.12,
171.55,
172.49,
174.96,
174.78,
175.96
],
[
168.42,
169.12,
169.51,
172.18,
172,
172.79,
175.05,
174.68,
175.84,
176.09,
176.26,
176.24,
176.32,
175.57,
175.21,
175.35,
175.46,
175.66,
176.64,
176.95,
178.53,
178.47,
179.53,
181.5,
182.85,
183.67,
183.63,
184.06,
184.76
],
[
166.74,
168.02,
170.09,
168,
169.86,
170.1,
170.57,
169.84,
169.3,
169.57,
169.74,
169.51,
169.49,
170.43,
170.44,
172.39,
171.98,
173.2,
174.76,
175.45,
176.09,
176.43,
177.45,
177.12,
178.47,
177.6,
177.66,
178.14,
178.35
],
[
155.01,
156.57,
158.42,
158.17,
158.82,
161.6,
161.79,
162.77,
162.84,
163.93,
165.12,
164.32,
165.54,
164.18,
164.1,
164.2,
166.25,
166.32,
166.07,
166.71,
166.42,
168.62,
170.21,
171.58,
171.48,
173.08,
174.49,
174.61,
175.79
],
[
169.77,
171.34,
171.91,
172.8,
172.66,
174.37,
173.97,
173.78,
173.72,
174.5,
174.42,
174.58,
175.2,
176.49,
176.94,
178.19,
180.03,
180.25,
182.6,
182.55,
184.9,
185.4,
186.17,
185.77,
187.04,
186.38,
187.85,
187.06,
187.58
],
[
158.15,
157.96,
157.33,
156.65,
156,
156.54,
155.5,
156.26,
156.34,
156.9,
158.01,
158.74,
160.34,
161.66,
162.15,
162.18,
163.16,
162.82,
162.73,
162.55,
161.87,
161.02,
160.67,
160.46,
160.54,
161.84,
162.46,
163.03,
164.56
],
[
165.97,
166.49,
165.94,
166.78,
166.05,
167.2,
168.13,
168.05,
169.1,
169.13,
171.18,
170.99,
172.13,
172.36,
172.56,
171.35,
171.03,
170.7,
170.92,
170.95,
170.71,
171.04,
170.47,
170.21,
170.75,
172.44,
173.15,
173.98,
174.71
],
[
161.72,
161.87,
161.64,
163.19,
164.14,
164.15,
165.23,
165.93,
166.78,
166.84,
167.98,
167.89,
167.56,
167.64,
167.13,
166.62,
166.29,
165.11,
165.12,
166.08,
166.6,
166.93,
167.73,
168.02,
169.41,
169.6,
170.87,
171.26,
170.84
],
[
164.22,
163.95,
164.23,
163.63,
165.4,
166.1,
167.65,
167.61,
168.17,
168.89,
169.41,
171.24,
171.11,
170.39,
170.17,
170.83,
171.06,
169.1,
169.37,
170.08,
170.19,
170.09,
170.66,
171.12,
171.2,
171.97,
172.85,
174.14,
174.28
],
[
158.78,
159.88,
161.67,
163.19,
164.53,
165.68,
166.78,
166.28,
167.06,
168.02,
167.89,
167.62,
168.83,
169.02,
168.16,
169.15,
170.12,
170.89,
170.66,
172.71,
173.56,
174.47,
176.46,
176.39,
178.48,
178.92,
179.59,
181.02,
180.2
],
[
157.59,
158.14,
156.95,
157.55,
158.55,
158.42,
158.68,
159.78,
159.69,
161.99,
161.5,
162.71,
163.33,
163.69,
164.8,
164.86,
165.33,
165.43,
164.73,
163.45,
163.88,
163.91,
164.07,
163.89,
163.75,
165.46,
166.17,
166.87,
167.37
],
[
154.45,
154.82,
155.64,
156.03,
157.34,
157.23,
157.33,
158.05,
157.71,
158.9,
157.8,
157.85,
156.88,
157.28,
156.09,
157.29,
157.09,
157.56,
159.02,
158.31,
159.73,
160.44,
161.18,
161.37,
162.62,
163.33,
163.23,
162.8,
161.72
],
[
166.44,
168.61,
169.04,
169.54,
170.29,
170.34,
170.06,
171.33,
170.32,
170.69,
170.37,
170.61,
170.14,
169.83,
171.09,
170.49,
172.52,
172.91,
173.96,
174.65,
175.67,
176.74,
176.92,
177.5,
178.36,
178.47,
178.24,
177.79,
177.45
],
[
160.75,
163.33,
163.8,
164.96,
165.24,
165.95,
166.76,
166.45,
166.46,
166.35,
166.98,
166.88,
166.94,
167.59,
168.24,
168.61,
169.26,
170.03,
170.66,
173,
173.48,
173.91,
175.37,
176.72,
176.92,
177.21,
177.72,
178.37,
177.12
],
[
163.75,
164.74,
166.42,
166.44,
166.5,
168.07,
169.46,
169.75,
171.04,
172.33,
174.31,
173.3,
174.29,
174.65,
174.58,
175.28,
174.18,
174.22,
175.2,
174.73,
176.65,
176.33,
177.38,
177.36,
179.95,
180.84,
181.11,
182.74,
183.86
],
[
154.82,
155.11,
156.46,
156.86,
158.47,
160.96,
160.97,
162.52,
162.82,
164.27,
164.12,
164.18,
165.76,
166.49,
166.48,
166.8,
166.29,
167.14,
166.12,
166.68,
168.56,
167.88,
169.4,
171.12,
171.55,
172.49,
174.96,
174.78,
175.96
],
[
168.42,
169.12,
169.51,
172.18,
172,
172.79,
175.05,
174.68,
175.84,
176.09,
176.26,
176.24,
176.32,
175.57,
175.21,
175.35,
175.46,
175.66,
176.64,
176.95,
178.53,
178.47,
179.53,
181.5,
182.85,
183.67,
183.63,
184.06,
184.76
],
[
166.74,
168.02,
170.09,
168,
169.86,
170.1,
170.57,
169.84,
169.3,
169.57,
169.74,
169.51,
169.49,
170.43,
170.44,
172.39,
171.98,
173.2,
174.76,
175.45,
176.09,
176.43,
177.45,
177.12,
178.47,
177.6,
177.66,
178.14,
178.35
],
[
155.01,
156.57,
158.42,
158.17,
158.82,
161.6,
161.79,
162.77,
162.84,
163.93,
165.12,
164.32,
165.54,
164.18,
164.1,
164.2,
166.25,
166.32,
166.07,
166.71,
166.42,
168.62,
170.21,
171.58,
171.48,
173.08,
174.49,
174.61,
175.79
],
[
169.77,
171.34,
171.91,
172.8,
172.66,
174.37,
173.97,
173.78,
173.72,
174.5,
174.42,
174.58,
175.2,
176.49,
176.94,
178.19,
180.03,
180.25,
182.6,
182.55,
184.9,
185.4,
186.17,
185.77,
187.04,
186.38,
187.85,
187.06,
187.58
],
[
161.04,
160.77,
160.67,
159.85,
159.7,
159.3,
160.31,
161.54,
161.81,
162.61,
164.13,
164.22,
165.13,
165.18,
165.17,
164.45,
163.75,
163.28,
163.03,
162.7,
162.57,
163.25,
162.59,
163.44,
164.3,
166.12,
166.21,
166.87,
167.87
]
]
},
"z" : {
"Panel" : [
"Norway",
"Norway",
"Norway",
"Norway",
"Norway",
"Norway",
"Norway",
"Norway",
"Norway",
"Norway",
"Norway",
"Norway",
"Norway",
"Norway",
"Norway",
"Japan",
"Japan",
"Japan",
"Japan",
"Japan",
"Japan",
"Japan",
"Japan",
"Japan",
"Japan",
"Japan",
"Japan",
"Japan",
"Japan",
"Japan",
"Mexico",
"Mexico",
"Mexico",
"Mexico",
"Mexico",
"Mexico",
"Mexico",
"Mexico",
"Mexico",
"Mexico",
"Mexico",
"Mexico",
"Mexico",
"Mexico",
"Mexico",
"Kenya",
"Kenya",
"Kenya",
"Kenya",
"Kenya",
"Kenya",
"Kenya",
"Kenya",
"Kenya",
"Kenya",
"Kenya",
"Kenya",
"Kenya",
"Kenya",
"Kenya"
],
"Role" : [
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"A focus",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"A focus",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"A focus",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"B ghost",
"A focus"
]
}
}
// Create the configuration for the graph
var config = {
"graphType" : "Line",
"theme" : "classic",
"titleAlign" : "plot::0",
"subtitleAlign" : "plot::0",
"graphOrientation" : "vertical",
"segregateVariablesBy" : [
"Panel"
],
"layoutTopology" : "1X4",
"colorScheme" : "User",
"colors" : [
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d6007b",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d6007b",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d6007b",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d4d4d4",
"#d6007b"
],
"showLegend" : false,
"lineThickness" : 3,
"smpLabelInterval" : 28,
"smpTextRotate" : 90,
"smpTextScaleFontFactor" : 0.9,
"smpTitle" : "",
"xAxisTitle" : "",
"xAxisGridMajorShow" : true,
"xAxisGridMajorColor" : "#e6e6e6",
"layoutSpacing" : 28,
"stripBackgroundColor" : "rgba(255,255,255,0)",
"stripBackgroundBorderColor" : "rgba(255,255,255,0)",
"stripTextAlign" : "left",
"stripTextColor" : "#111111",
"stripTextFontStyle" : "bold",
"xAxisShow" : true,
"title" : "People everywhere are getting taller, at different rates",
"subtitle" : "Average height (cm) of men by birth-year cohort in four countries (colour) against 14 other countries (grey)",
"source" : "Synthetic data for illustration",
"byline" : "Chart: CanvasXpress",
"showDataDownload" : false
}
// Event used to create graph (optional)
var events = false
// Call the CanvasXpress function to create the graph
var cX = new CanvasXpress("canvasId", data, config, events);
</script>
</body>
</html>
from canvasxpress.canvas import CanvasXpress
from canvasxpress.plot import show_in_browser
if __name__ == "__main__":
# Define the chart with its data and configuration
chart: CanvasXpress = CanvasXpress(
render_to = "timeseries7",
data = {
"y": {
"vars": ["bg0_0", "bg0_1", "bg0_2", "bg0_3", "bg0_4", "bg0_5", "bg0_6", "bg0_7", "bg0_8", "bg0_9", "bg0_10", "bg0_11", "bg0_12", "bg0_13", "focus0", "bg1_0", "bg1_1", "bg1_2", "bg1_3", "bg1_4", "bg1_5", "bg1_6", "bg1_7", "bg1_8", "bg1_9", "bg1_10", "bg1_11", "bg1_12", "bg1_13", "focus1", "bg2_0", "bg2_1", "bg2_2", "bg2_3", "bg2_4", "bg2_5", "bg2_6", "bg2_7", "bg2_8", "bg2_9", "bg2_10", "bg2_11", "bg2_12", "bg2_13", "focus2", "bg3_0", "bg3_1", "bg3_2", "bg3_3", "bg3_4", "bg3_5", "bg3_6", "bg3_7", "bg3_8", "bg3_9", "bg3_10", "bg3_11", "bg3_12", "bg3_13", "focus3"],
"smps": ["1850 ", "1855s", "1860s", "1865s", "1870s", "1875s", "1880s", "1885s", "1890s", "1895s", "1900s", "1905s", "1910s", "1915s", "1920s", "1925s", "1930s", "1935s", "1940s", "1945s", "1950s", "1955s", "1960s", "1965s", "1970s", "1975s", "1980s", "1985s", "1990 "],
"data": [
[165.97, 166.49, 165.94, 166.78, 166.05, 167.2, 168.13, 168.05, 169.1, 169.13, 171.18, 170.99, 172.13, 172.36, 172.56, 171.35, 171.03, 170.7, 170.92, 170.95, 170.71, 171.04, 170.47, 170.21, 170.75, 172.44, 173.15, 173.98, 174.71],
[161.72, 161.87, 161.64, 163.19, 164.14, 164.15, 165.23, 165.93, 166.78, 166.84, 167.98, 167.89, 167.56, 167.64, 167.13, 166.62, 166.29, 165.11, 165.12, 166.08, 166.6, 166.93, 167.73, 168.02, 169.41, 169.6, 170.87, 171.26, 170.84],
[164.22, 163.95, 164.23, 163.63, 165.4, 166.1, 167.65, 167.61, 168.17, 168.89, 169.41, 171.24, 171.11, 170.39, 170.17, 170.83, 171.06, 169.1, 169.37, 170.08, 170.19, 170.09, 170.66, 171.12, 171.2, 171.97, 172.85, 174.14, 174.28],
[158.78, 159.88, 161.67, 163.19, 164.53, 165.68, 166.78, 166.28, 167.06, 168.02, 167.89, 167.62, 168.83, 169.02, 168.16, 169.15, 170.12, 170.89, 170.66, 172.71, 173.56, 174.47, 176.46, 176.39, 178.48, 178.92, 179.59, 181.02, 180.2],
[157.59, 158.14, 156.95, 157.55, 158.55, 158.42, 158.68, 159.78, 159.69, 161.99, 161.5, 162.71, 163.33, 163.69, 164.8, 164.86, 165.33, 165.43, 164.73, 163.45, 163.88, 163.91, 164.07, 163.89, 163.75, 165.46, 166.17, 166.87, 167.37],
[154.45, 154.82, 155.64, 156.03, 157.34, 157.23, 157.33, 158.05, 157.71, 158.9, 157.8, 157.85, 156.88, 157.28, 156.09, 157.29, 157.09, 157.56, 159.02, 158.31, 159.73, 160.44, 161.18, 161.37, 162.62, 163.33, 163.23, 162.8, 161.72],
[166.44, 168.61, 169.04, 169.54, 170.29, 170.34, 170.06, 171.33, 170.32, 170.69, 170.37, 170.61, 170.14, 169.83, 171.09, 170.49, 172.52, 172.91, 173.96, 174.65, 175.67, 176.74, 176.92, 177.5, 178.36, 178.47, 178.24, 177.79, 177.45],
[160.75, 163.33, 163.8, 164.96, 165.24, 165.95, 166.76, 166.45, 166.46, 166.35, 166.98, 166.88, 166.94, 167.59, 168.24, 168.61, 169.26, 170.03, 170.66, 173, 173.48, 173.91, 175.37, 176.72, 176.92, 177.21, 177.72, 178.37, 177.12],
[163.75, 164.74, 166.42, 166.44, 166.5, 168.07, 169.46, 169.75, 171.04, 172.33, 174.31, 173.3, 174.29, 174.65, 174.58, 175.28, 174.18, 174.22, 175.2, 174.73, 176.65, 176.33, 177.38, 177.36, 179.95, 180.84, 181.11, 182.74, 183.86],
[154.82, 155.11, 156.46, 156.86, 158.47, 160.96, 160.97, 162.52, 162.82, 164.27, 164.12, 164.18, 165.76, 166.49, 166.48, 166.8, 166.29, 167.14, 166.12, 166.68, 168.56, 167.88, 169.4, 171.12, 171.55, 172.49, 174.96, 174.78, 175.96],
[168.42, 169.12, 169.51, 172.18, 172, 172.79, 175.05, 174.68, 175.84, 176.09, 176.26, 176.24, 176.32, 175.57, 175.21, 175.35, 175.46, 175.66, 176.64, 176.95, 178.53, 178.47, 179.53, 181.5, 182.85, 183.67, 183.63, 184.06, 184.76],
[166.74, 168.02, 170.09, 168, 169.86, 170.1, 170.57, 169.84, 169.3, 169.57, 169.74, 169.51, 169.49, 170.43, 170.44, 172.39, 171.98, 173.2, 174.76, 175.45, 176.09, 176.43, 177.45, 177.12, 178.47, 177.6, 177.66, 178.14, 178.35],
[155.01, 156.57, 158.42, 158.17, 158.82, 161.6, 161.79, 162.77, 162.84, 163.93, 165.12, 164.32, 165.54, 164.18, 164.1, 164.2, 166.25, 166.32, 166.07, 166.71, 166.42, 168.62, 170.21, 171.58, 171.48, 173.08, 174.49, 174.61, 175.79],
[169.77, 171.34, 171.91, 172.8, 172.66, 174.37, 173.97, 173.78, 173.72, 174.5, 174.42, 174.58, 175.2, 176.49, 176.94, 178.19, 180.03, 180.25, 182.6, 182.55, 184.9, 185.4, 186.17, 185.77, 187.04, 186.38, 187.85, 187.06, 187.58],
[168.13, 169.76, 170.87, 172.73, 172.1, 173.08, 173.08, 173.65, 173.1, 173.48, 172.8, 173.28, 173.5, 174.97, 174.57, 176.87, 177.84, 180.13, 180.55, 181.83, 183.35, 183.65, 184.63, 183.61, 184.11, 184.64, 182.53, 183.38, 184.31],
[165.97, 166.49, 165.94, 166.78, 166.05, 167.2, 168.13, 168.05, 169.1, 169.13, 171.18, 170.99, 172.13, 172.36, 172.56, 171.35, 171.03, 170.7, 170.92, 170.95, 170.71, 171.04, 170.47, 170.21, 170.75, 172.44, 173.15, 173.98, 174.71],
[161.72, 161.87, 161.64, 163.19, 164.14, 164.15, 165.23, 165.93, 166.78, 166.84, 167.98, 167.89, 167.56, 167.64, 167.13, 166.62, 166.29, 165.11, 165.12, 166.08, 166.6, 166.93, 167.73, 168.02, 169.41, 169.6, 170.87, 171.26, 170.84],
[164.22, 163.95, 164.23, 163.63, 165.4, 166.1, 167.65, 167.61, 168.17, 168.89, 169.41, 171.24, 171.11, 170.39, 170.17, 170.83, 171.06, 169.1, 169.37, 170.08, 170.19, 170.09, 170.66, 171.12, 171.2, 171.97, 172.85, 174.14, 174.28],
[158.78, 159.88, 161.67, 163.19, 164.53, 165.68, 166.78, 166.28, 167.06, 168.02, 167.89, 167.62, 168.83, 169.02, 168.16, 169.15, 170.12, 170.89, 170.66, 172.71, 173.56, 174.47, 176.46, 176.39, 178.48, 178.92, 179.59, 181.02, 180.2],
[157.59, 158.14, 156.95, 157.55, 158.55, 158.42, 158.68, 159.78, 159.69, 161.99, 161.5, 162.71, 163.33, 163.69, 164.8, 164.86, 165.33, 165.43, 164.73, 163.45, 163.88, 163.91, 164.07, 163.89, 163.75, 165.46, 166.17, 166.87, 167.37],
[154.45, 154.82, 155.64, 156.03, 157.34, 157.23, 157.33, 158.05, 157.71, 158.9, 157.8, 157.85, 156.88, 157.28, 156.09, 157.29, 157.09, 157.56, 159.02, 158.31, 159.73, 160.44, 161.18, 161.37, 162.62, 163.33, 163.23, 162.8, 161.72],
[166.44, 168.61, 169.04, 169.54, 170.29, 170.34, 170.06, 171.33, 170.32, 170.69, 170.37, 170.61, 170.14, 169.83, 171.09, 170.49, 172.52, 172.91, 173.96, 174.65, 175.67, 176.74, 176.92, 177.5, 178.36, 178.47, 178.24, 177.79, 177.45],
[160.75, 163.33, 163.8, 164.96, 165.24, 165.95, 166.76, 166.45, 166.46, 166.35, 166.98, 166.88, 166.94, 167.59, 168.24, 168.61, 169.26, 170.03, 170.66, 173, 173.48, 173.91, 175.37, 176.72, 176.92, 177.21, 177.72, 178.37, 177.12],
[163.75, 164.74, 166.42, 166.44, 166.5, 168.07, 169.46, 169.75, 171.04, 172.33, 174.31, 173.3, 174.29, 174.65, 174.58, 175.28, 174.18, 174.22, 175.2, 174.73, 176.65, 176.33, 177.38, 177.36, 179.95, 180.84, 181.11, 182.74, 183.86],
[154.82, 155.11, 156.46, 156.86, 158.47, 160.96, 160.97, 162.52, 162.82, 164.27, 164.12, 164.18, 165.76, 166.49, 166.48, 166.8, 166.29, 167.14, 166.12, 166.68, 168.56, 167.88, 169.4, 171.12, 171.55, 172.49, 174.96, 174.78, 175.96],
[168.42, 169.12, 169.51, 172.18, 172, 172.79, 175.05, 174.68, 175.84, 176.09, 176.26, 176.24, 176.32, 175.57, 175.21, 175.35, 175.46, 175.66, 176.64, 176.95, 178.53, 178.47, 179.53, 181.5, 182.85, 183.67, 183.63, 184.06, 184.76],
[166.74, 168.02, 170.09, 168, 169.86, 170.1, 170.57, 169.84, 169.3, 169.57, 169.74, 169.51, 169.49, 170.43, 170.44, 172.39, 171.98, 173.2, 174.76, 175.45, 176.09, 176.43, 177.45, 177.12, 178.47, 177.6, 177.66, 178.14, 178.35],
[155.01, 156.57, 158.42, 158.17, 158.82, 161.6, 161.79, 162.77, 162.84, 163.93, 165.12, 164.32, 165.54, 164.18, 164.1, 164.2, 166.25, 166.32, 166.07, 166.71, 166.42, 168.62, 170.21, 171.58, 171.48, 173.08, 174.49, 174.61, 175.79],
[169.77, 171.34, 171.91, 172.8, 172.66, 174.37, 173.97, 173.78, 173.72, 174.5, 174.42, 174.58, 175.2, 176.49, 176.94, 178.19, 180.03, 180.25, 182.6, 182.55, 184.9, 185.4, 186.17, 185.77, 187.04, 186.38, 187.85, 187.06, 187.58],
[162.05, 163.14, 163.24, 163.77, 163.62, 163.55, 163.34, 163.71, 163.1, 163.18, 163.53, 165.38, 166.34, 167.78, 168.22, 170.03, 172.34, 172.75, 174.23, 173.69, 173.36, 173.65, 172.55, 172.36, 173.49, 172.63, 173.66, 174.04, 175.84],
[165.97, 166.49, 165.94, 166.78, 166.05, 167.2, 168.13, 168.05, 169.1, 169.13, 171.18, 170.99, 172.13, 172.36, 172.56, 171.35, 171.03, 170.7, 170.92, 170.95, 170.71, 171.04, 170.47, 170.21, 170.75, 172.44, 173.15, 173.98, 174.71],
[161.72, 161.87, 161.64, 163.19, 164.14, 164.15, 165.23, 165.93, 166.78, 166.84, 167.98, 167.89, 167.56, 167.64, 167.13, 166.62, 166.29, 165.11, 165.12, 166.08, 166.6, 166.93, 167.73, 168.02, 169.41, 169.6, 170.87, 171.26, 170.84],
[164.22, 163.95, 164.23, 163.63, 165.4, 166.1, 167.65, 167.61, 168.17, 168.89, 169.41, 171.24, 171.11, 170.39, 170.17, 170.83, 171.06, 169.1, 169.37, 170.08, 170.19, 170.09, 170.66, 171.12, 171.2, 171.97, 172.85, 174.14, 174.28],
[158.78, 159.88, 161.67, 163.19, 164.53, 165.68, 166.78, 166.28, 167.06, 168.02, 167.89, 167.62, 168.83, 169.02, 168.16, 169.15, 170.12, 170.89, 170.66, 172.71, 173.56, 174.47, 176.46, 176.39, 178.48, 178.92, 179.59, 181.02, 180.2],
[157.59, 158.14, 156.95, 157.55, 158.55, 158.42, 158.68, 159.78, 159.69, 161.99, 161.5, 162.71, 163.33, 163.69, 164.8, 164.86, 165.33, 165.43, 164.73, 163.45, 163.88, 163.91, 164.07, 163.89, 163.75, 165.46, 166.17, 166.87, 167.37],
[154.45, 154.82, 155.64, 156.03, 157.34, 157.23, 157.33, 158.05, 157.71, 158.9, 157.8, 157.85, 156.88, 157.28, 156.09, 157.29, 157.09, 157.56, 159.02, 158.31, 159.73, 160.44, 161.18, 161.37, 162.62, 163.33, 163.23, 162.8, 161.72],
[166.44, 168.61, 169.04, 169.54, 170.29, 170.34, 170.06, 171.33, 170.32, 170.69, 170.37, 170.61, 170.14, 169.83, 171.09, 170.49, 172.52, 172.91, 173.96, 174.65, 175.67, 176.74, 176.92, 177.5, 178.36, 178.47, 178.24, 177.79, 177.45],
[160.75, 163.33, 163.8, 164.96, 165.24, 165.95, 166.76, 166.45, 166.46, 166.35, 166.98, 166.88, 166.94, 167.59, 168.24, 168.61, 169.26, 170.03, 170.66, 173, 173.48, 173.91, 175.37, 176.72, 176.92, 177.21, 177.72, 178.37, 177.12],
[163.75, 164.74, 166.42, 166.44, 166.5, 168.07, 169.46, 169.75, 171.04, 172.33, 174.31, 173.3, 174.29, 174.65, 174.58, 175.28, 174.18, 174.22, 175.2, 174.73, 176.65, 176.33, 177.38, 177.36, 179.95, 180.84, 181.11, 182.74, 183.86],
[154.82, 155.11, 156.46, 156.86, 158.47, 160.96, 160.97, 162.52, 162.82, 164.27, 164.12, 164.18, 165.76, 166.49, 166.48, 166.8, 166.29, 167.14, 166.12, 166.68, 168.56, 167.88, 169.4, 171.12, 171.55, 172.49, 174.96, 174.78, 175.96],
[168.42, 169.12, 169.51, 172.18, 172, 172.79, 175.05, 174.68, 175.84, 176.09, 176.26, 176.24, 176.32, 175.57, 175.21, 175.35, 175.46, 175.66, 176.64, 176.95, 178.53, 178.47, 179.53, 181.5, 182.85, 183.67, 183.63, 184.06, 184.76],
[166.74, 168.02, 170.09, 168, 169.86, 170.1, 170.57, 169.84, 169.3, 169.57, 169.74, 169.51, 169.49, 170.43, 170.44, 172.39, 171.98, 173.2, 174.76, 175.45, 176.09, 176.43, 177.45, 177.12, 178.47, 177.6, 177.66, 178.14, 178.35],
[155.01, 156.57, 158.42, 158.17, 158.82, 161.6, 161.79, 162.77, 162.84, 163.93, 165.12, 164.32, 165.54, 164.18, 164.1, 164.2, 166.25, 166.32, 166.07, 166.71, 166.42, 168.62, 170.21, 171.58, 171.48, 173.08, 174.49, 174.61, 175.79],
[169.77, 171.34, 171.91, 172.8, 172.66, 174.37, 173.97, 173.78, 173.72, 174.5, 174.42, 174.58, 175.2, 176.49, 176.94, 178.19, 180.03, 180.25, 182.6, 182.55, 184.9, 185.4, 186.17, 185.77, 187.04, 186.38, 187.85, 187.06, 187.58],
[158.15, 157.96, 157.33, 156.65, 156, 156.54, 155.5, 156.26, 156.34, 156.9, 158.01, 158.74, 160.34, 161.66, 162.15, 162.18, 163.16, 162.82, 162.73, 162.55, 161.87, 161.02, 160.67, 160.46, 160.54, 161.84, 162.46, 163.03, 164.56],
[165.97, 166.49, 165.94, 166.78, 166.05, 167.2, 168.13, 168.05, 169.1, 169.13, 171.18, 170.99, 172.13, 172.36, 172.56, 171.35, 171.03, 170.7, 170.92, 170.95, 170.71, 171.04, 170.47, 170.21, 170.75, 172.44, 173.15, 173.98, 174.71],
[161.72, 161.87, 161.64, 163.19, 164.14, 164.15, 165.23, 165.93, 166.78, 166.84, 167.98, 167.89, 167.56, 167.64, 167.13, 166.62, 166.29, 165.11, 165.12, 166.08, 166.6, 166.93, 167.73, 168.02, 169.41, 169.6, 170.87, 171.26, 170.84],
[164.22, 163.95, 164.23, 163.63, 165.4, 166.1, 167.65, 167.61, 168.17, 168.89, 169.41, 171.24, 171.11, 170.39, 170.17, 170.83, 171.06, 169.1, 169.37, 170.08, 170.19, 170.09, 170.66, 171.12, 171.2, 171.97, 172.85, 174.14, 174.28],
[158.78, 159.88, 161.67, 163.19, 164.53, 165.68, 166.78, 166.28, 167.06, 168.02, 167.89, 167.62, 168.83, 169.02, 168.16, 169.15, 170.12, 170.89, 170.66, 172.71, 173.56, 174.47, 176.46, 176.39, 178.48, 178.92, 179.59, 181.02, 180.2],
[157.59, 158.14, 156.95, 157.55, 158.55, 158.42, 158.68, 159.78, 159.69, 161.99, 161.5, 162.71, 163.33, 163.69, 164.8, 164.86, 165.33, 165.43, 164.73, 163.45, 163.88, 163.91, 164.07, 163.89, 163.75, 165.46, 166.17, 166.87, 167.37],
[154.45, 154.82, 155.64, 156.03, 157.34, 157.23, 157.33, 158.05, 157.71, 158.9, 157.8, 157.85, 156.88, 157.28, 156.09, 157.29, 157.09, 157.56, 159.02, 158.31, 159.73, 160.44, 161.18, 161.37, 162.62, 163.33, 163.23, 162.8, 161.72],
[166.44, 168.61, 169.04, 169.54, 170.29, 170.34, 170.06, 171.33, 170.32, 170.69, 170.37, 170.61, 170.14, 169.83, 171.09, 170.49, 172.52, 172.91, 173.96, 174.65, 175.67, 176.74, 176.92, 177.5, 178.36, 178.47, 178.24, 177.79, 177.45],
[160.75, 163.33, 163.8, 164.96, 165.24, 165.95, 166.76, 166.45, 166.46, 166.35, 166.98, 166.88, 166.94, 167.59, 168.24, 168.61, 169.26, 170.03, 170.66, 173, 173.48, 173.91, 175.37, 176.72, 176.92, 177.21, 177.72, 178.37, 177.12],
[163.75, 164.74, 166.42, 166.44, 166.5, 168.07, 169.46, 169.75, 171.04, 172.33, 174.31, 173.3, 174.29, 174.65, 174.58, 175.28, 174.18, 174.22, 175.2, 174.73, 176.65, 176.33, 177.38, 177.36, 179.95, 180.84, 181.11, 182.74, 183.86],
[154.82, 155.11, 156.46, 156.86, 158.47, 160.96, 160.97, 162.52, 162.82, 164.27, 164.12, 164.18, 165.76, 166.49, 166.48, 166.8, 166.29, 167.14, 166.12, 166.68, 168.56, 167.88, 169.4, 171.12, 171.55, 172.49, 174.96, 174.78, 175.96],
[168.42, 169.12, 169.51, 172.18, 172, 172.79, 175.05, 174.68, 175.84, 176.09, 176.26, 176.24, 176.32, 175.57, 175.21, 175.35, 175.46, 175.66, 176.64, 176.95, 178.53, 178.47, 179.53, 181.5, 182.85, 183.67, 183.63, 184.06, 184.76],
[166.74, 168.02, 170.09, 168, 169.86, 170.1, 170.57, 169.84, 169.3, 169.57, 169.74, 169.51, 169.49, 170.43, 170.44, 172.39, 171.98, 173.2, 174.76, 175.45, 176.09, 176.43, 177.45, 177.12, 178.47, 177.6, 177.66, 178.14, 178.35],
[155.01, 156.57, 158.42, 158.17, 158.82, 161.6, 161.79, 162.77, 162.84, 163.93, 165.12, 164.32, 165.54, 164.18, 164.1, 164.2, 166.25, 166.32, 166.07, 166.71, 166.42, 168.62, 170.21, 171.58, 171.48, 173.08, 174.49, 174.61, 175.79],
[169.77, 171.34, 171.91, 172.8, 172.66, 174.37, 173.97, 173.78, 173.72, 174.5, 174.42, 174.58, 175.2, 176.49, 176.94, 178.19, 180.03, 180.25, 182.6, 182.55, 184.9, 185.4, 186.17, 185.77, 187.04, 186.38, 187.85, 187.06, 187.58],
[161.04, 160.77, 160.67, 159.85, 159.7, 159.3, 160.31, 161.54, 161.81, 162.61, 164.13, 164.22, 165.13, 165.18, 165.17, 164.45, 163.75, 163.28, 163.03, 162.7, 162.57, 163.25, 162.59, 163.44, 164.3, 166.12, 166.21, 166.87, 167.87]
]
},
"z": {
"Panel": ["Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya"],
"Role": ["B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "A focus", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "A focus", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "A focus", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "A focus"]
}
},
config = {
"graphType": "Line",
"theme": "classic",
"titleAlign": "plot::0",
"subtitleAlign": "plot::0",
"graphOrientation": "vertical",
"segregateVariablesBy": ["Panel"],
"layoutTopology": "1X4",
"colorScheme": "User",
"colors": ["#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d6007b", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d6007b", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d6007b", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d6007b"],
"showLegend": False,
"lineThickness": 3,
"smpLabelInterval": 28,
"smpTextRotate": 90,
"smpTextScaleFontFactor": 0.9,
"smpTitle": "",
"xAxisTitle": "",
"xAxisGridMajorShow": True,
"xAxisGridMajorColor": "#e6e6e6",
"layoutSpacing": 28,
"stripBackgroundColor": "rgba(255,255,255,0)",
"stripBackgroundBorderColor": "rgba(255,255,255,0)",
"stripTextAlign": "left",
"stripTextColor": "#111111",
"stripTextFontStyle": "bold",
"xAxisShow": True,
"title": "People everywhere are getting taller, at different rates",
"subtitle": "Average height (cm) of men by birth-year cohort in four countries (colour) against 14 other countries (grey)",
"source": "Synthetic data for illustration",
"byline": "Chart: CanvasXpress",
"showDataDownload": False
},
width = 760,
height = 520
)
# Display the chart in its own Web page
show_in_browser(chart)
from canvasxpress.canvas import CanvasXpress
from canvasxpress.plot import graph
graph(
CanvasXpress(
render_to = "timeseries7",
data = {
"y": {
"vars": ["bg0_0", "bg0_1", "bg0_2", "bg0_3", "bg0_4", "bg0_5", "bg0_6", "bg0_7", "bg0_8", "bg0_9", "bg0_10", "bg0_11", "bg0_12", "bg0_13", "focus0", "bg1_0", "bg1_1", "bg1_2", "bg1_3", "bg1_4", "bg1_5", "bg1_6", "bg1_7", "bg1_8", "bg1_9", "bg1_10", "bg1_11", "bg1_12", "bg1_13", "focus1", "bg2_0", "bg2_1", "bg2_2", "bg2_3", "bg2_4", "bg2_5", "bg2_6", "bg2_7", "bg2_8", "bg2_9", "bg2_10", "bg2_11", "bg2_12", "bg2_13", "focus2", "bg3_0", "bg3_1", "bg3_2", "bg3_3", "bg3_4", "bg3_5", "bg3_6", "bg3_7", "bg3_8", "bg3_9", "bg3_10", "bg3_11", "bg3_12", "bg3_13", "focus3"],
"smps": ["1850 ", "1855s", "1860s", "1865s", "1870s", "1875s", "1880s", "1885s", "1890s", "1895s", "1900s", "1905s", "1910s", "1915s", "1920s", "1925s", "1930s", "1935s", "1940s", "1945s", "1950s", "1955s", "1960s", "1965s", "1970s", "1975s", "1980s", "1985s", "1990 "],
"data": [
[165.97, 166.49, 165.94, 166.78, 166.05, 167.2, 168.13, 168.05, 169.1, 169.13, 171.18, 170.99, 172.13, 172.36, 172.56, 171.35, 171.03, 170.7, 170.92, 170.95, 170.71, 171.04, 170.47, 170.21, 170.75, 172.44, 173.15, 173.98, 174.71],
[161.72, 161.87, 161.64, 163.19, 164.14, 164.15, 165.23, 165.93, 166.78, 166.84, 167.98, 167.89, 167.56, 167.64, 167.13, 166.62, 166.29, 165.11, 165.12, 166.08, 166.6, 166.93, 167.73, 168.02, 169.41, 169.6, 170.87, 171.26, 170.84],
[164.22, 163.95, 164.23, 163.63, 165.4, 166.1, 167.65, 167.61, 168.17, 168.89, 169.41, 171.24, 171.11, 170.39, 170.17, 170.83, 171.06, 169.1, 169.37, 170.08, 170.19, 170.09, 170.66, 171.12, 171.2, 171.97, 172.85, 174.14, 174.28],
[158.78, 159.88, 161.67, 163.19, 164.53, 165.68, 166.78, 166.28, 167.06, 168.02, 167.89, 167.62, 168.83, 169.02, 168.16, 169.15, 170.12, 170.89, 170.66, 172.71, 173.56, 174.47, 176.46, 176.39, 178.48, 178.92, 179.59, 181.02, 180.2],
[157.59, 158.14, 156.95, 157.55, 158.55, 158.42, 158.68, 159.78, 159.69, 161.99, 161.5, 162.71, 163.33, 163.69, 164.8, 164.86, 165.33, 165.43, 164.73, 163.45, 163.88, 163.91, 164.07, 163.89, 163.75, 165.46, 166.17, 166.87, 167.37],
[154.45, 154.82, 155.64, 156.03, 157.34, 157.23, 157.33, 158.05, 157.71, 158.9, 157.8, 157.85, 156.88, 157.28, 156.09, 157.29, 157.09, 157.56, 159.02, 158.31, 159.73, 160.44, 161.18, 161.37, 162.62, 163.33, 163.23, 162.8, 161.72],
[166.44, 168.61, 169.04, 169.54, 170.29, 170.34, 170.06, 171.33, 170.32, 170.69, 170.37, 170.61, 170.14, 169.83, 171.09, 170.49, 172.52, 172.91, 173.96, 174.65, 175.67, 176.74, 176.92, 177.5, 178.36, 178.47, 178.24, 177.79, 177.45],
[160.75, 163.33, 163.8, 164.96, 165.24, 165.95, 166.76, 166.45, 166.46, 166.35, 166.98, 166.88, 166.94, 167.59, 168.24, 168.61, 169.26, 170.03, 170.66, 173, 173.48, 173.91, 175.37, 176.72, 176.92, 177.21, 177.72, 178.37, 177.12],
[163.75, 164.74, 166.42, 166.44, 166.5, 168.07, 169.46, 169.75, 171.04, 172.33, 174.31, 173.3, 174.29, 174.65, 174.58, 175.28, 174.18, 174.22, 175.2, 174.73, 176.65, 176.33, 177.38, 177.36, 179.95, 180.84, 181.11, 182.74, 183.86],
[154.82, 155.11, 156.46, 156.86, 158.47, 160.96, 160.97, 162.52, 162.82, 164.27, 164.12, 164.18, 165.76, 166.49, 166.48, 166.8, 166.29, 167.14, 166.12, 166.68, 168.56, 167.88, 169.4, 171.12, 171.55, 172.49, 174.96, 174.78, 175.96],
[168.42, 169.12, 169.51, 172.18, 172, 172.79, 175.05, 174.68, 175.84, 176.09, 176.26, 176.24, 176.32, 175.57, 175.21, 175.35, 175.46, 175.66, 176.64, 176.95, 178.53, 178.47, 179.53, 181.5, 182.85, 183.67, 183.63, 184.06, 184.76],
[166.74, 168.02, 170.09, 168, 169.86, 170.1, 170.57, 169.84, 169.3, 169.57, 169.74, 169.51, 169.49, 170.43, 170.44, 172.39, 171.98, 173.2, 174.76, 175.45, 176.09, 176.43, 177.45, 177.12, 178.47, 177.6, 177.66, 178.14, 178.35],
[155.01, 156.57, 158.42, 158.17, 158.82, 161.6, 161.79, 162.77, 162.84, 163.93, 165.12, 164.32, 165.54, 164.18, 164.1, 164.2, 166.25, 166.32, 166.07, 166.71, 166.42, 168.62, 170.21, 171.58, 171.48, 173.08, 174.49, 174.61, 175.79],
[169.77, 171.34, 171.91, 172.8, 172.66, 174.37, 173.97, 173.78, 173.72, 174.5, 174.42, 174.58, 175.2, 176.49, 176.94, 178.19, 180.03, 180.25, 182.6, 182.55, 184.9, 185.4, 186.17, 185.77, 187.04, 186.38, 187.85, 187.06, 187.58],
[168.13, 169.76, 170.87, 172.73, 172.1, 173.08, 173.08, 173.65, 173.1, 173.48, 172.8, 173.28, 173.5, 174.97, 174.57, 176.87, 177.84, 180.13, 180.55, 181.83, 183.35, 183.65, 184.63, 183.61, 184.11, 184.64, 182.53, 183.38, 184.31],
[165.97, 166.49, 165.94, 166.78, 166.05, 167.2, 168.13, 168.05, 169.1, 169.13, 171.18, 170.99, 172.13, 172.36, 172.56, 171.35, 171.03, 170.7, 170.92, 170.95, 170.71, 171.04, 170.47, 170.21, 170.75, 172.44, 173.15, 173.98, 174.71],
[161.72, 161.87, 161.64, 163.19, 164.14, 164.15, 165.23, 165.93, 166.78, 166.84, 167.98, 167.89, 167.56, 167.64, 167.13, 166.62, 166.29, 165.11, 165.12, 166.08, 166.6, 166.93, 167.73, 168.02, 169.41, 169.6, 170.87, 171.26, 170.84],
[164.22, 163.95, 164.23, 163.63, 165.4, 166.1, 167.65, 167.61, 168.17, 168.89, 169.41, 171.24, 171.11, 170.39, 170.17, 170.83, 171.06, 169.1, 169.37, 170.08, 170.19, 170.09, 170.66, 171.12, 171.2, 171.97, 172.85, 174.14, 174.28],
[158.78, 159.88, 161.67, 163.19, 164.53, 165.68, 166.78, 166.28, 167.06, 168.02, 167.89, 167.62, 168.83, 169.02, 168.16, 169.15, 170.12, 170.89, 170.66, 172.71, 173.56, 174.47, 176.46, 176.39, 178.48, 178.92, 179.59, 181.02, 180.2],
[157.59, 158.14, 156.95, 157.55, 158.55, 158.42, 158.68, 159.78, 159.69, 161.99, 161.5, 162.71, 163.33, 163.69, 164.8, 164.86, 165.33, 165.43, 164.73, 163.45, 163.88, 163.91, 164.07, 163.89, 163.75, 165.46, 166.17, 166.87, 167.37],
[154.45, 154.82, 155.64, 156.03, 157.34, 157.23, 157.33, 158.05, 157.71, 158.9, 157.8, 157.85, 156.88, 157.28, 156.09, 157.29, 157.09, 157.56, 159.02, 158.31, 159.73, 160.44, 161.18, 161.37, 162.62, 163.33, 163.23, 162.8, 161.72],
[166.44, 168.61, 169.04, 169.54, 170.29, 170.34, 170.06, 171.33, 170.32, 170.69, 170.37, 170.61, 170.14, 169.83, 171.09, 170.49, 172.52, 172.91, 173.96, 174.65, 175.67, 176.74, 176.92, 177.5, 178.36, 178.47, 178.24, 177.79, 177.45],
[160.75, 163.33, 163.8, 164.96, 165.24, 165.95, 166.76, 166.45, 166.46, 166.35, 166.98, 166.88, 166.94, 167.59, 168.24, 168.61, 169.26, 170.03, 170.66, 173, 173.48, 173.91, 175.37, 176.72, 176.92, 177.21, 177.72, 178.37, 177.12],
[163.75, 164.74, 166.42, 166.44, 166.5, 168.07, 169.46, 169.75, 171.04, 172.33, 174.31, 173.3, 174.29, 174.65, 174.58, 175.28, 174.18, 174.22, 175.2, 174.73, 176.65, 176.33, 177.38, 177.36, 179.95, 180.84, 181.11, 182.74, 183.86],
[154.82, 155.11, 156.46, 156.86, 158.47, 160.96, 160.97, 162.52, 162.82, 164.27, 164.12, 164.18, 165.76, 166.49, 166.48, 166.8, 166.29, 167.14, 166.12, 166.68, 168.56, 167.88, 169.4, 171.12, 171.55, 172.49, 174.96, 174.78, 175.96],
[168.42, 169.12, 169.51, 172.18, 172, 172.79, 175.05, 174.68, 175.84, 176.09, 176.26, 176.24, 176.32, 175.57, 175.21, 175.35, 175.46, 175.66, 176.64, 176.95, 178.53, 178.47, 179.53, 181.5, 182.85, 183.67, 183.63, 184.06, 184.76],
[166.74, 168.02, 170.09, 168, 169.86, 170.1, 170.57, 169.84, 169.3, 169.57, 169.74, 169.51, 169.49, 170.43, 170.44, 172.39, 171.98, 173.2, 174.76, 175.45, 176.09, 176.43, 177.45, 177.12, 178.47, 177.6, 177.66, 178.14, 178.35],
[155.01, 156.57, 158.42, 158.17, 158.82, 161.6, 161.79, 162.77, 162.84, 163.93, 165.12, 164.32, 165.54, 164.18, 164.1, 164.2, 166.25, 166.32, 166.07, 166.71, 166.42, 168.62, 170.21, 171.58, 171.48, 173.08, 174.49, 174.61, 175.79],
[169.77, 171.34, 171.91, 172.8, 172.66, 174.37, 173.97, 173.78, 173.72, 174.5, 174.42, 174.58, 175.2, 176.49, 176.94, 178.19, 180.03, 180.25, 182.6, 182.55, 184.9, 185.4, 186.17, 185.77, 187.04, 186.38, 187.85, 187.06, 187.58],
[162.05, 163.14, 163.24, 163.77, 163.62, 163.55, 163.34, 163.71, 163.1, 163.18, 163.53, 165.38, 166.34, 167.78, 168.22, 170.03, 172.34, 172.75, 174.23, 173.69, 173.36, 173.65, 172.55, 172.36, 173.49, 172.63, 173.66, 174.04, 175.84],
[165.97, 166.49, 165.94, 166.78, 166.05, 167.2, 168.13, 168.05, 169.1, 169.13, 171.18, 170.99, 172.13, 172.36, 172.56, 171.35, 171.03, 170.7, 170.92, 170.95, 170.71, 171.04, 170.47, 170.21, 170.75, 172.44, 173.15, 173.98, 174.71],
[161.72, 161.87, 161.64, 163.19, 164.14, 164.15, 165.23, 165.93, 166.78, 166.84, 167.98, 167.89, 167.56, 167.64, 167.13, 166.62, 166.29, 165.11, 165.12, 166.08, 166.6, 166.93, 167.73, 168.02, 169.41, 169.6, 170.87, 171.26, 170.84],
[164.22, 163.95, 164.23, 163.63, 165.4, 166.1, 167.65, 167.61, 168.17, 168.89, 169.41, 171.24, 171.11, 170.39, 170.17, 170.83, 171.06, 169.1, 169.37, 170.08, 170.19, 170.09, 170.66, 171.12, 171.2, 171.97, 172.85, 174.14, 174.28],
[158.78, 159.88, 161.67, 163.19, 164.53, 165.68, 166.78, 166.28, 167.06, 168.02, 167.89, 167.62, 168.83, 169.02, 168.16, 169.15, 170.12, 170.89, 170.66, 172.71, 173.56, 174.47, 176.46, 176.39, 178.48, 178.92, 179.59, 181.02, 180.2],
[157.59, 158.14, 156.95, 157.55, 158.55, 158.42, 158.68, 159.78, 159.69, 161.99, 161.5, 162.71, 163.33, 163.69, 164.8, 164.86, 165.33, 165.43, 164.73, 163.45, 163.88, 163.91, 164.07, 163.89, 163.75, 165.46, 166.17, 166.87, 167.37],
[154.45, 154.82, 155.64, 156.03, 157.34, 157.23, 157.33, 158.05, 157.71, 158.9, 157.8, 157.85, 156.88, 157.28, 156.09, 157.29, 157.09, 157.56, 159.02, 158.31, 159.73, 160.44, 161.18, 161.37, 162.62, 163.33, 163.23, 162.8, 161.72],
[166.44, 168.61, 169.04, 169.54, 170.29, 170.34, 170.06, 171.33, 170.32, 170.69, 170.37, 170.61, 170.14, 169.83, 171.09, 170.49, 172.52, 172.91, 173.96, 174.65, 175.67, 176.74, 176.92, 177.5, 178.36, 178.47, 178.24, 177.79, 177.45],
[160.75, 163.33, 163.8, 164.96, 165.24, 165.95, 166.76, 166.45, 166.46, 166.35, 166.98, 166.88, 166.94, 167.59, 168.24, 168.61, 169.26, 170.03, 170.66, 173, 173.48, 173.91, 175.37, 176.72, 176.92, 177.21, 177.72, 178.37, 177.12],
[163.75, 164.74, 166.42, 166.44, 166.5, 168.07, 169.46, 169.75, 171.04, 172.33, 174.31, 173.3, 174.29, 174.65, 174.58, 175.28, 174.18, 174.22, 175.2, 174.73, 176.65, 176.33, 177.38, 177.36, 179.95, 180.84, 181.11, 182.74, 183.86],
[154.82, 155.11, 156.46, 156.86, 158.47, 160.96, 160.97, 162.52, 162.82, 164.27, 164.12, 164.18, 165.76, 166.49, 166.48, 166.8, 166.29, 167.14, 166.12, 166.68, 168.56, 167.88, 169.4, 171.12, 171.55, 172.49, 174.96, 174.78, 175.96],
[168.42, 169.12, 169.51, 172.18, 172, 172.79, 175.05, 174.68, 175.84, 176.09, 176.26, 176.24, 176.32, 175.57, 175.21, 175.35, 175.46, 175.66, 176.64, 176.95, 178.53, 178.47, 179.53, 181.5, 182.85, 183.67, 183.63, 184.06, 184.76],
[166.74, 168.02, 170.09, 168, 169.86, 170.1, 170.57, 169.84, 169.3, 169.57, 169.74, 169.51, 169.49, 170.43, 170.44, 172.39, 171.98, 173.2, 174.76, 175.45, 176.09, 176.43, 177.45, 177.12, 178.47, 177.6, 177.66, 178.14, 178.35],
[155.01, 156.57, 158.42, 158.17, 158.82, 161.6, 161.79, 162.77, 162.84, 163.93, 165.12, 164.32, 165.54, 164.18, 164.1, 164.2, 166.25, 166.32, 166.07, 166.71, 166.42, 168.62, 170.21, 171.58, 171.48, 173.08, 174.49, 174.61, 175.79],
[169.77, 171.34, 171.91, 172.8, 172.66, 174.37, 173.97, 173.78, 173.72, 174.5, 174.42, 174.58, 175.2, 176.49, 176.94, 178.19, 180.03, 180.25, 182.6, 182.55, 184.9, 185.4, 186.17, 185.77, 187.04, 186.38, 187.85, 187.06, 187.58],
[158.15, 157.96, 157.33, 156.65, 156, 156.54, 155.5, 156.26, 156.34, 156.9, 158.01, 158.74, 160.34, 161.66, 162.15, 162.18, 163.16, 162.82, 162.73, 162.55, 161.87, 161.02, 160.67, 160.46, 160.54, 161.84, 162.46, 163.03, 164.56],
[165.97, 166.49, 165.94, 166.78, 166.05, 167.2, 168.13, 168.05, 169.1, 169.13, 171.18, 170.99, 172.13, 172.36, 172.56, 171.35, 171.03, 170.7, 170.92, 170.95, 170.71, 171.04, 170.47, 170.21, 170.75, 172.44, 173.15, 173.98, 174.71],
[161.72, 161.87, 161.64, 163.19, 164.14, 164.15, 165.23, 165.93, 166.78, 166.84, 167.98, 167.89, 167.56, 167.64, 167.13, 166.62, 166.29, 165.11, 165.12, 166.08, 166.6, 166.93, 167.73, 168.02, 169.41, 169.6, 170.87, 171.26, 170.84],
[164.22, 163.95, 164.23, 163.63, 165.4, 166.1, 167.65, 167.61, 168.17, 168.89, 169.41, 171.24, 171.11, 170.39, 170.17, 170.83, 171.06, 169.1, 169.37, 170.08, 170.19, 170.09, 170.66, 171.12, 171.2, 171.97, 172.85, 174.14, 174.28],
[158.78, 159.88, 161.67, 163.19, 164.53, 165.68, 166.78, 166.28, 167.06, 168.02, 167.89, 167.62, 168.83, 169.02, 168.16, 169.15, 170.12, 170.89, 170.66, 172.71, 173.56, 174.47, 176.46, 176.39, 178.48, 178.92, 179.59, 181.02, 180.2],
[157.59, 158.14, 156.95, 157.55, 158.55, 158.42, 158.68, 159.78, 159.69, 161.99, 161.5, 162.71, 163.33, 163.69, 164.8, 164.86, 165.33, 165.43, 164.73, 163.45, 163.88, 163.91, 164.07, 163.89, 163.75, 165.46, 166.17, 166.87, 167.37],
[154.45, 154.82, 155.64, 156.03, 157.34, 157.23, 157.33, 158.05, 157.71, 158.9, 157.8, 157.85, 156.88, 157.28, 156.09, 157.29, 157.09, 157.56, 159.02, 158.31, 159.73, 160.44, 161.18, 161.37, 162.62, 163.33, 163.23, 162.8, 161.72],
[166.44, 168.61, 169.04, 169.54, 170.29, 170.34, 170.06, 171.33, 170.32, 170.69, 170.37, 170.61, 170.14, 169.83, 171.09, 170.49, 172.52, 172.91, 173.96, 174.65, 175.67, 176.74, 176.92, 177.5, 178.36, 178.47, 178.24, 177.79, 177.45],
[160.75, 163.33, 163.8, 164.96, 165.24, 165.95, 166.76, 166.45, 166.46, 166.35, 166.98, 166.88, 166.94, 167.59, 168.24, 168.61, 169.26, 170.03, 170.66, 173, 173.48, 173.91, 175.37, 176.72, 176.92, 177.21, 177.72, 178.37, 177.12],
[163.75, 164.74, 166.42, 166.44, 166.5, 168.07, 169.46, 169.75, 171.04, 172.33, 174.31, 173.3, 174.29, 174.65, 174.58, 175.28, 174.18, 174.22, 175.2, 174.73, 176.65, 176.33, 177.38, 177.36, 179.95, 180.84, 181.11, 182.74, 183.86],
[154.82, 155.11, 156.46, 156.86, 158.47, 160.96, 160.97, 162.52, 162.82, 164.27, 164.12, 164.18, 165.76, 166.49, 166.48, 166.8, 166.29, 167.14, 166.12, 166.68, 168.56, 167.88, 169.4, 171.12, 171.55, 172.49, 174.96, 174.78, 175.96],
[168.42, 169.12, 169.51, 172.18, 172, 172.79, 175.05, 174.68, 175.84, 176.09, 176.26, 176.24, 176.32, 175.57, 175.21, 175.35, 175.46, 175.66, 176.64, 176.95, 178.53, 178.47, 179.53, 181.5, 182.85, 183.67, 183.63, 184.06, 184.76],
[166.74, 168.02, 170.09, 168, 169.86, 170.1, 170.57, 169.84, 169.3, 169.57, 169.74, 169.51, 169.49, 170.43, 170.44, 172.39, 171.98, 173.2, 174.76, 175.45, 176.09, 176.43, 177.45, 177.12, 178.47, 177.6, 177.66, 178.14, 178.35],
[155.01, 156.57, 158.42, 158.17, 158.82, 161.6, 161.79, 162.77, 162.84, 163.93, 165.12, 164.32, 165.54, 164.18, 164.1, 164.2, 166.25, 166.32, 166.07, 166.71, 166.42, 168.62, 170.21, 171.58, 171.48, 173.08, 174.49, 174.61, 175.79],
[169.77, 171.34, 171.91, 172.8, 172.66, 174.37, 173.97, 173.78, 173.72, 174.5, 174.42, 174.58, 175.2, 176.49, 176.94, 178.19, 180.03, 180.25, 182.6, 182.55, 184.9, 185.4, 186.17, 185.77, 187.04, 186.38, 187.85, 187.06, 187.58],
[161.04, 160.77, 160.67, 159.85, 159.7, 159.3, 160.31, 161.54, 161.81, 162.61, 164.13, 164.22, 165.13, 165.18, 165.17, 164.45, 163.75, 163.28, 163.03, 162.7, 162.57, 163.25, 162.59, 163.44, 164.3, 166.12, 166.21, 166.87, 167.87]
]
},
"z": {
"Panel": ["Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya"],
"Role": ["B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "A focus", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "A focus", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "A focus", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "A focus"]
}
},
config = {
"graphType": "Line",
"theme": "classic",
"titleAlign": "plot::0",
"subtitleAlign": "plot::0",
"graphOrientation": "vertical",
"segregateVariablesBy": ["Panel"],
"layoutTopology": "1X4",
"colorScheme": "User",
"colors": ["#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d6007b", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d6007b", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d6007b", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d6007b"],
"showLegend": False,
"lineThickness": 3,
"smpLabelInterval": 28,
"smpTextRotate": 90,
"smpTextScaleFontFactor": 0.9,
"smpTitle": "",
"xAxisTitle": "",
"xAxisGridMajorShow": True,
"xAxisGridMajorColor": "#e6e6e6",
"layoutSpacing": 28,
"stripBackgroundColor": "rgba(255,255,255,0)",
"stripBackgroundBorderColor": "rgba(255,255,255,0)",
"stripTextAlign": "left",
"stripTextColor": "#111111",
"stripTextFontStyle": "bold",
"xAxisShow": True,
"title": "People everywhere are getting taller, at different rates",
"subtitle": "Average height (cm) of men by birth-year cohort in four countries (colour) against 14 other countries (grey)",
"source": "Synthetic data for illustration",
"byline": "Chart: CanvasXpress",
"showDataDownload": False
},
width = 760,
height = 520
)
)
using CanvasXpress
canvasxpress(Dict(
"y" => Dict(
"vars" => ["bg0_0", "bg0_1", "bg0_2", "bg0_3", "bg0_4", "bg0_5", "bg0_6", "bg0_7", "bg0_8", "bg0_9", "bg0_10", "bg0_11", "bg0_12", "bg0_13", "focus0", "bg1_0", "bg1_1", "bg1_2", "bg1_3", "bg1_4", "bg1_5", "bg1_6", "bg1_7", "bg1_8", "bg1_9", "bg1_10", "bg1_11", "bg1_12", "bg1_13", "focus1", "bg2_0", "bg2_1", "bg2_2", "bg2_3", "bg2_4", "bg2_5", "bg2_6", "bg2_7", "bg2_8", "bg2_9", "bg2_10", "bg2_11", "bg2_12", "bg2_13", "focus2", "bg3_0", "bg3_1", "bg3_2", "bg3_3", "bg3_4", "bg3_5", "bg3_6", "bg3_7", "bg3_8", "bg3_9", "bg3_10", "bg3_11", "bg3_12", "bg3_13", "focus3"],
"smps" => ["1850 ", "1855s", "1860s", "1865s", "1870s", "1875s", "1880s", "1885s", "1890s", "1895s", "1900s", "1905s", "1910s", "1915s", "1920s", "1925s", "1930s", "1935s", "1940s", "1945s", "1950s", "1955s", "1960s", "1965s", "1970s", "1975s", "1980s", "1985s", "1990 "],
"data" => [
[165.97, 166.49, 165.94, 166.78, 166.05, 167.2, 168.13, 168.05, 169.1, 169.13, 171.18, 170.99, 172.13, 172.36, 172.56, 171.35, 171.03, 170.7, 170.92, 170.95, 170.71, 171.04, 170.47, 170.21, 170.75, 172.44, 173.15, 173.98, 174.71],
[161.72, 161.87, 161.64, 163.19, 164.14, 164.15, 165.23, 165.93, 166.78, 166.84, 167.98, 167.89, 167.56, 167.64, 167.13, 166.62, 166.29, 165.11, 165.12, 166.08, 166.6, 166.93, 167.73, 168.02, 169.41, 169.6, 170.87, 171.26, 170.84],
[164.22, 163.95, 164.23, 163.63, 165.4, 166.1, 167.65, 167.61, 168.17, 168.89, 169.41, 171.24, 171.11, 170.39, 170.17, 170.83, 171.06, 169.1, 169.37, 170.08, 170.19, 170.09, 170.66, 171.12, 171.2, 171.97, 172.85, 174.14, 174.28],
[158.78, 159.88, 161.67, 163.19, 164.53, 165.68, 166.78, 166.28, 167.06, 168.02, 167.89, 167.62, 168.83, 169.02, 168.16, 169.15, 170.12, 170.89, 170.66, 172.71, 173.56, 174.47, 176.46, 176.39, 178.48, 178.92, 179.59, 181.02, 180.2],
[157.59, 158.14, 156.95, 157.55, 158.55, 158.42, 158.68, 159.78, 159.69, 161.99, 161.5, 162.71, 163.33, 163.69, 164.8, 164.86, 165.33, 165.43, 164.73, 163.45, 163.88, 163.91, 164.07, 163.89, 163.75, 165.46, 166.17, 166.87, 167.37],
[154.45, 154.82, 155.64, 156.03, 157.34, 157.23, 157.33, 158.05, 157.71, 158.9, 157.8, 157.85, 156.88, 157.28, 156.09, 157.29, 157.09, 157.56, 159.02, 158.31, 159.73, 160.44, 161.18, 161.37, 162.62, 163.33, 163.23, 162.8, 161.72],
[166.44, 168.61, 169.04, 169.54, 170.29, 170.34, 170.06, 171.33, 170.32, 170.69, 170.37, 170.61, 170.14, 169.83, 171.09, 170.49, 172.52, 172.91, 173.96, 174.65, 175.67, 176.74, 176.92, 177.5, 178.36, 178.47, 178.24, 177.79, 177.45],
[160.75, 163.33, 163.8, 164.96, 165.24, 165.95, 166.76, 166.45, 166.46, 166.35, 166.98, 166.88, 166.94, 167.59, 168.24, 168.61, 169.26, 170.03, 170.66, 173, 173.48, 173.91, 175.37, 176.72, 176.92, 177.21, 177.72, 178.37, 177.12],
[163.75, 164.74, 166.42, 166.44, 166.5, 168.07, 169.46, 169.75, 171.04, 172.33, 174.31, 173.3, 174.29, 174.65, 174.58, 175.28, 174.18, 174.22, 175.2, 174.73, 176.65, 176.33, 177.38, 177.36, 179.95, 180.84, 181.11, 182.74, 183.86],
[154.82, 155.11, 156.46, 156.86, 158.47, 160.96, 160.97, 162.52, 162.82, 164.27, 164.12, 164.18, 165.76, 166.49, 166.48, 166.8, 166.29, 167.14, 166.12, 166.68, 168.56, 167.88, 169.4, 171.12, 171.55, 172.49, 174.96, 174.78, 175.96],
[168.42, 169.12, 169.51, 172.18, 172, 172.79, 175.05, 174.68, 175.84, 176.09, 176.26, 176.24, 176.32, 175.57, 175.21, 175.35, 175.46, 175.66, 176.64, 176.95, 178.53, 178.47, 179.53, 181.5, 182.85, 183.67, 183.63, 184.06, 184.76],
[166.74, 168.02, 170.09, 168, 169.86, 170.1, 170.57, 169.84, 169.3, 169.57, 169.74, 169.51, 169.49, 170.43, 170.44, 172.39, 171.98, 173.2, 174.76, 175.45, 176.09, 176.43, 177.45, 177.12, 178.47, 177.6, 177.66, 178.14, 178.35],
[155.01, 156.57, 158.42, 158.17, 158.82, 161.6, 161.79, 162.77, 162.84, 163.93, 165.12, 164.32, 165.54, 164.18, 164.1, 164.2, 166.25, 166.32, 166.07, 166.71, 166.42, 168.62, 170.21, 171.58, 171.48, 173.08, 174.49, 174.61, 175.79],
[169.77, 171.34, 171.91, 172.8, 172.66, 174.37, 173.97, 173.78, 173.72, 174.5, 174.42, 174.58, 175.2, 176.49, 176.94, 178.19, 180.03, 180.25, 182.6, 182.55, 184.9, 185.4, 186.17, 185.77, 187.04, 186.38, 187.85, 187.06, 187.58],
[168.13, 169.76, 170.87, 172.73, 172.1, 173.08, 173.08, 173.65, 173.1, 173.48, 172.8, 173.28, 173.5, 174.97, 174.57, 176.87, 177.84, 180.13, 180.55, 181.83, 183.35, 183.65, 184.63, 183.61, 184.11, 184.64, 182.53, 183.38, 184.31],
[165.97, 166.49, 165.94, 166.78, 166.05, 167.2, 168.13, 168.05, 169.1, 169.13, 171.18, 170.99, 172.13, 172.36, 172.56, 171.35, 171.03, 170.7, 170.92, 170.95, 170.71, 171.04, 170.47, 170.21, 170.75, 172.44, 173.15, 173.98, 174.71],
[161.72, 161.87, 161.64, 163.19, 164.14, 164.15, 165.23, 165.93, 166.78, 166.84, 167.98, 167.89, 167.56, 167.64, 167.13, 166.62, 166.29, 165.11, 165.12, 166.08, 166.6, 166.93, 167.73, 168.02, 169.41, 169.6, 170.87, 171.26, 170.84],
[164.22, 163.95, 164.23, 163.63, 165.4, 166.1, 167.65, 167.61, 168.17, 168.89, 169.41, 171.24, 171.11, 170.39, 170.17, 170.83, 171.06, 169.1, 169.37, 170.08, 170.19, 170.09, 170.66, 171.12, 171.2, 171.97, 172.85, 174.14, 174.28],
[158.78, 159.88, 161.67, 163.19, 164.53, 165.68, 166.78, 166.28, 167.06, 168.02, 167.89, 167.62, 168.83, 169.02, 168.16, 169.15, 170.12, 170.89, 170.66, 172.71, 173.56, 174.47, 176.46, 176.39, 178.48, 178.92, 179.59, 181.02, 180.2],
[157.59, 158.14, 156.95, 157.55, 158.55, 158.42, 158.68, 159.78, 159.69, 161.99, 161.5, 162.71, 163.33, 163.69, 164.8, 164.86, 165.33, 165.43, 164.73, 163.45, 163.88, 163.91, 164.07, 163.89, 163.75, 165.46, 166.17, 166.87, 167.37],
[154.45, 154.82, 155.64, 156.03, 157.34, 157.23, 157.33, 158.05, 157.71, 158.9, 157.8, 157.85, 156.88, 157.28, 156.09, 157.29, 157.09, 157.56, 159.02, 158.31, 159.73, 160.44, 161.18, 161.37, 162.62, 163.33, 163.23, 162.8, 161.72],
[166.44, 168.61, 169.04, 169.54, 170.29, 170.34, 170.06, 171.33, 170.32, 170.69, 170.37, 170.61, 170.14, 169.83, 171.09, 170.49, 172.52, 172.91, 173.96, 174.65, 175.67, 176.74, 176.92, 177.5, 178.36, 178.47, 178.24, 177.79, 177.45],
[160.75, 163.33, 163.8, 164.96, 165.24, 165.95, 166.76, 166.45, 166.46, 166.35, 166.98, 166.88, 166.94, 167.59, 168.24, 168.61, 169.26, 170.03, 170.66, 173, 173.48, 173.91, 175.37, 176.72, 176.92, 177.21, 177.72, 178.37, 177.12],
[163.75, 164.74, 166.42, 166.44, 166.5, 168.07, 169.46, 169.75, 171.04, 172.33, 174.31, 173.3, 174.29, 174.65, 174.58, 175.28, 174.18, 174.22, 175.2, 174.73, 176.65, 176.33, 177.38, 177.36, 179.95, 180.84, 181.11, 182.74, 183.86],
[154.82, 155.11, 156.46, 156.86, 158.47, 160.96, 160.97, 162.52, 162.82, 164.27, 164.12, 164.18, 165.76, 166.49, 166.48, 166.8, 166.29, 167.14, 166.12, 166.68, 168.56, 167.88, 169.4, 171.12, 171.55, 172.49, 174.96, 174.78, 175.96],
[168.42, 169.12, 169.51, 172.18, 172, 172.79, 175.05, 174.68, 175.84, 176.09, 176.26, 176.24, 176.32, 175.57, 175.21, 175.35, 175.46, 175.66, 176.64, 176.95, 178.53, 178.47, 179.53, 181.5, 182.85, 183.67, 183.63, 184.06, 184.76],
[166.74, 168.02, 170.09, 168, 169.86, 170.1, 170.57, 169.84, 169.3, 169.57, 169.74, 169.51, 169.49, 170.43, 170.44, 172.39, 171.98, 173.2, 174.76, 175.45, 176.09, 176.43, 177.45, 177.12, 178.47, 177.6, 177.66, 178.14, 178.35],
[155.01, 156.57, 158.42, 158.17, 158.82, 161.6, 161.79, 162.77, 162.84, 163.93, 165.12, 164.32, 165.54, 164.18, 164.1, 164.2, 166.25, 166.32, 166.07, 166.71, 166.42, 168.62, 170.21, 171.58, 171.48, 173.08, 174.49, 174.61, 175.79],
[169.77, 171.34, 171.91, 172.8, 172.66, 174.37, 173.97, 173.78, 173.72, 174.5, 174.42, 174.58, 175.2, 176.49, 176.94, 178.19, 180.03, 180.25, 182.6, 182.55, 184.9, 185.4, 186.17, 185.77, 187.04, 186.38, 187.85, 187.06, 187.58],
[162.05, 163.14, 163.24, 163.77, 163.62, 163.55, 163.34, 163.71, 163.1, 163.18, 163.53, 165.38, 166.34, 167.78, 168.22, 170.03, 172.34, 172.75, 174.23, 173.69, 173.36, 173.65, 172.55, 172.36, 173.49, 172.63, 173.66, 174.04, 175.84],
[165.97, 166.49, 165.94, 166.78, 166.05, 167.2, 168.13, 168.05, 169.1, 169.13, 171.18, 170.99, 172.13, 172.36, 172.56, 171.35, 171.03, 170.7, 170.92, 170.95, 170.71, 171.04, 170.47, 170.21, 170.75, 172.44, 173.15, 173.98, 174.71],
[161.72, 161.87, 161.64, 163.19, 164.14, 164.15, 165.23, 165.93, 166.78, 166.84, 167.98, 167.89, 167.56, 167.64, 167.13, 166.62, 166.29, 165.11, 165.12, 166.08, 166.6, 166.93, 167.73, 168.02, 169.41, 169.6, 170.87, 171.26, 170.84],
[164.22, 163.95, 164.23, 163.63, 165.4, 166.1, 167.65, 167.61, 168.17, 168.89, 169.41, 171.24, 171.11, 170.39, 170.17, 170.83, 171.06, 169.1, 169.37, 170.08, 170.19, 170.09, 170.66, 171.12, 171.2, 171.97, 172.85, 174.14, 174.28],
[158.78, 159.88, 161.67, 163.19, 164.53, 165.68, 166.78, 166.28, 167.06, 168.02, 167.89, 167.62, 168.83, 169.02, 168.16, 169.15, 170.12, 170.89, 170.66, 172.71, 173.56, 174.47, 176.46, 176.39, 178.48, 178.92, 179.59, 181.02, 180.2],
[157.59, 158.14, 156.95, 157.55, 158.55, 158.42, 158.68, 159.78, 159.69, 161.99, 161.5, 162.71, 163.33, 163.69, 164.8, 164.86, 165.33, 165.43, 164.73, 163.45, 163.88, 163.91, 164.07, 163.89, 163.75, 165.46, 166.17, 166.87, 167.37],
[154.45, 154.82, 155.64, 156.03, 157.34, 157.23, 157.33, 158.05, 157.71, 158.9, 157.8, 157.85, 156.88, 157.28, 156.09, 157.29, 157.09, 157.56, 159.02, 158.31, 159.73, 160.44, 161.18, 161.37, 162.62, 163.33, 163.23, 162.8, 161.72],
[166.44, 168.61, 169.04, 169.54, 170.29, 170.34, 170.06, 171.33, 170.32, 170.69, 170.37, 170.61, 170.14, 169.83, 171.09, 170.49, 172.52, 172.91, 173.96, 174.65, 175.67, 176.74, 176.92, 177.5, 178.36, 178.47, 178.24, 177.79, 177.45],
[160.75, 163.33, 163.8, 164.96, 165.24, 165.95, 166.76, 166.45, 166.46, 166.35, 166.98, 166.88, 166.94, 167.59, 168.24, 168.61, 169.26, 170.03, 170.66, 173, 173.48, 173.91, 175.37, 176.72, 176.92, 177.21, 177.72, 178.37, 177.12],
[163.75, 164.74, 166.42, 166.44, 166.5, 168.07, 169.46, 169.75, 171.04, 172.33, 174.31, 173.3, 174.29, 174.65, 174.58, 175.28, 174.18, 174.22, 175.2, 174.73, 176.65, 176.33, 177.38, 177.36, 179.95, 180.84, 181.11, 182.74, 183.86],
[154.82, 155.11, 156.46, 156.86, 158.47, 160.96, 160.97, 162.52, 162.82, 164.27, 164.12, 164.18, 165.76, 166.49, 166.48, 166.8, 166.29, 167.14, 166.12, 166.68, 168.56, 167.88, 169.4, 171.12, 171.55, 172.49, 174.96, 174.78, 175.96],
[168.42, 169.12, 169.51, 172.18, 172, 172.79, 175.05, 174.68, 175.84, 176.09, 176.26, 176.24, 176.32, 175.57, 175.21, 175.35, 175.46, 175.66, 176.64, 176.95, 178.53, 178.47, 179.53, 181.5, 182.85, 183.67, 183.63, 184.06, 184.76],
[166.74, 168.02, 170.09, 168, 169.86, 170.1, 170.57, 169.84, 169.3, 169.57, 169.74, 169.51, 169.49, 170.43, 170.44, 172.39, 171.98, 173.2, 174.76, 175.45, 176.09, 176.43, 177.45, 177.12, 178.47, 177.6, 177.66, 178.14, 178.35],
[155.01, 156.57, 158.42, 158.17, 158.82, 161.6, 161.79, 162.77, 162.84, 163.93, 165.12, 164.32, 165.54, 164.18, 164.1, 164.2, 166.25, 166.32, 166.07, 166.71, 166.42, 168.62, 170.21, 171.58, 171.48, 173.08, 174.49, 174.61, 175.79],
[169.77, 171.34, 171.91, 172.8, 172.66, 174.37, 173.97, 173.78, 173.72, 174.5, 174.42, 174.58, 175.2, 176.49, 176.94, 178.19, 180.03, 180.25, 182.6, 182.55, 184.9, 185.4, 186.17, 185.77, 187.04, 186.38, 187.85, 187.06, 187.58],
[158.15, 157.96, 157.33, 156.65, 156, 156.54, 155.5, 156.26, 156.34, 156.9, 158.01, 158.74, 160.34, 161.66, 162.15, 162.18, 163.16, 162.82, 162.73, 162.55, 161.87, 161.02, 160.67, 160.46, 160.54, 161.84, 162.46, 163.03, 164.56],
[165.97, 166.49, 165.94, 166.78, 166.05, 167.2, 168.13, 168.05, 169.1, 169.13, 171.18, 170.99, 172.13, 172.36, 172.56, 171.35, 171.03, 170.7, 170.92, 170.95, 170.71, 171.04, 170.47, 170.21, 170.75, 172.44, 173.15, 173.98, 174.71],
[161.72, 161.87, 161.64, 163.19, 164.14, 164.15, 165.23, 165.93, 166.78, 166.84, 167.98, 167.89, 167.56, 167.64, 167.13, 166.62, 166.29, 165.11, 165.12, 166.08, 166.6, 166.93, 167.73, 168.02, 169.41, 169.6, 170.87, 171.26, 170.84],
[164.22, 163.95, 164.23, 163.63, 165.4, 166.1, 167.65, 167.61, 168.17, 168.89, 169.41, 171.24, 171.11, 170.39, 170.17, 170.83, 171.06, 169.1, 169.37, 170.08, 170.19, 170.09, 170.66, 171.12, 171.2, 171.97, 172.85, 174.14, 174.28],
[158.78, 159.88, 161.67, 163.19, 164.53, 165.68, 166.78, 166.28, 167.06, 168.02, 167.89, 167.62, 168.83, 169.02, 168.16, 169.15, 170.12, 170.89, 170.66, 172.71, 173.56, 174.47, 176.46, 176.39, 178.48, 178.92, 179.59, 181.02, 180.2],
[157.59, 158.14, 156.95, 157.55, 158.55, 158.42, 158.68, 159.78, 159.69, 161.99, 161.5, 162.71, 163.33, 163.69, 164.8, 164.86, 165.33, 165.43, 164.73, 163.45, 163.88, 163.91, 164.07, 163.89, 163.75, 165.46, 166.17, 166.87, 167.37],
[154.45, 154.82, 155.64, 156.03, 157.34, 157.23, 157.33, 158.05, 157.71, 158.9, 157.8, 157.85, 156.88, 157.28, 156.09, 157.29, 157.09, 157.56, 159.02, 158.31, 159.73, 160.44, 161.18, 161.37, 162.62, 163.33, 163.23, 162.8, 161.72],
[166.44, 168.61, 169.04, 169.54, 170.29, 170.34, 170.06, 171.33, 170.32, 170.69, 170.37, 170.61, 170.14, 169.83, 171.09, 170.49, 172.52, 172.91, 173.96, 174.65, 175.67, 176.74, 176.92, 177.5, 178.36, 178.47, 178.24, 177.79, 177.45],
[160.75, 163.33, 163.8, 164.96, 165.24, 165.95, 166.76, 166.45, 166.46, 166.35, 166.98, 166.88, 166.94, 167.59, 168.24, 168.61, 169.26, 170.03, 170.66, 173, 173.48, 173.91, 175.37, 176.72, 176.92, 177.21, 177.72, 178.37, 177.12],
[163.75, 164.74, 166.42, 166.44, 166.5, 168.07, 169.46, 169.75, 171.04, 172.33, 174.31, 173.3, 174.29, 174.65, 174.58, 175.28, 174.18, 174.22, 175.2, 174.73, 176.65, 176.33, 177.38, 177.36, 179.95, 180.84, 181.11, 182.74, 183.86],
[154.82, 155.11, 156.46, 156.86, 158.47, 160.96, 160.97, 162.52, 162.82, 164.27, 164.12, 164.18, 165.76, 166.49, 166.48, 166.8, 166.29, 167.14, 166.12, 166.68, 168.56, 167.88, 169.4, 171.12, 171.55, 172.49, 174.96, 174.78, 175.96],
[168.42, 169.12, 169.51, 172.18, 172, 172.79, 175.05, 174.68, 175.84, 176.09, 176.26, 176.24, 176.32, 175.57, 175.21, 175.35, 175.46, 175.66, 176.64, 176.95, 178.53, 178.47, 179.53, 181.5, 182.85, 183.67, 183.63, 184.06, 184.76],
[166.74, 168.02, 170.09, 168, 169.86, 170.1, 170.57, 169.84, 169.3, 169.57, 169.74, 169.51, 169.49, 170.43, 170.44, 172.39, 171.98, 173.2, 174.76, 175.45, 176.09, 176.43, 177.45, 177.12, 178.47, 177.6, 177.66, 178.14, 178.35],
[155.01, 156.57, 158.42, 158.17, 158.82, 161.6, 161.79, 162.77, 162.84, 163.93, 165.12, 164.32, 165.54, 164.18, 164.1, 164.2, 166.25, 166.32, 166.07, 166.71, 166.42, 168.62, 170.21, 171.58, 171.48, 173.08, 174.49, 174.61, 175.79],
[169.77, 171.34, 171.91, 172.8, 172.66, 174.37, 173.97, 173.78, 173.72, 174.5, 174.42, 174.58, 175.2, 176.49, 176.94, 178.19, 180.03, 180.25, 182.6, 182.55, 184.9, 185.4, 186.17, 185.77, 187.04, 186.38, 187.85, 187.06, 187.58],
[161.04, 160.77, 160.67, 159.85, 159.7, 159.3, 160.31, 161.54, 161.81, 162.61, 164.13, 164.22, 165.13, 165.18, 165.17, 164.45, 163.75, 163.28, 163.03, 162.7, 162.57, 163.25, 162.59, 163.44, 164.3, 166.12, 166.21, 166.87, 167.87]
]
),
"z" => Dict(
"Panel" => ["Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Norway", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Japan", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Mexico", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya", "Kenya"],
"Role" => ["B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "A focus", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "A focus", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "A focus", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "B ghost", "A focus"]
)
);
graphType = "Line",
theme = "classic",
titleAlign = "plot::0",
subtitleAlign = "plot::0",
graphOrientation = "vertical",
segregateVariablesBy = ["Panel"],
layoutTopology = "1X4",
colorScheme = "User",
colors = ["#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d6007b", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d6007b", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d6007b", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d4d4d4", "#d6007b"],
showLegend = false,
lineThickness = 3,
smpLabelInterval = 28,
smpTextRotate = 90,
smpTextScaleFontFactor = 0.9,
smpTitle = "",
xAxisTitle = "",
xAxisGridMajorShow = true,
xAxisGridMajorColor = "#e6e6e6",
layoutSpacing = 28,
stripBackgroundColor = "rgba(255,255,255,0)",
stripBackgroundBorderColor = "rgba(255,255,255,0)",
stripTextAlign = "left",
stripTextColor = "#111111",
stripTextFontStyle = "bold",
xAxisShow = true,
title = "People everywhere are getting taller, at different rates",
subtitle = "Average height (cm) of men by birth-year cohort in four countries (colour) against 14 other countries (grey)",
source = "Synthetic data for illustration",
byline = "Chart: CanvasXpress",
showDataDownload = false
)
























