Download web/AnyChart/bar/chart_0062_bar.html from chartact-benchmark/ChartAct: direct link, hf CLI and curl.
- Browser
- Download file 3.23 kB
-
https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AnyChart/bar/chart_0062_bar.html
- Command line
-
hf download hf://datasets/chartact-benchmark/ChartAct/web/AnyChart/bar/chart_0062_bar.html
-
curl -L -o chart_0062_bar.html https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AnyChart/bar/chart_0062_bar.html
3.23 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta content="IE=edge" http-equiv="X-UA-Compatible"> | |
| <meta content="width=device-width, initial-scale=1" name="viewport"> | |
| <title>Range Column Chart</title> | |
| <link href="https://playground.anychart.com/LfZf3oEn/iframe" rel="canonical"> | |
| <meta content="Bar Chart,Column Chart,Range Column Chart,Tooltip" name="keywords"> | |
| <meta content="AnyChart - JavaScript Charts designed to be embedded and integrated" name="description"> | |
| <!--[if lt IE 9]> | |
| <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> | |
| <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | |
| <![endif]--> | |
| <link href="_deps/cdn.anychart.com/releases/v8/css/anychart-ui.min_q4b3821eda2.css" rel="stylesheet" type="text/css"> | |
| <link href="_deps/cdn.anychart.com/releases/v8/fonts/css/anychart-font.min_q4b3821eda2.css" rel="stylesheet" type="text/css"> | |
| <style>html, body, #container { | |
| width: 100%; | |
| height: 100%; | |
| margin: 0; | |
| padding: 0; | |
| }</style> | |
| </head> | |
| <body> | |
| <div id="container"></div> | |
| <script src="_deps/cdn.anychart.com/releases/v8/js/anychart-base.min_q4b3821eda2.js"></script> | |
| <script src="_deps/cdn.anychart.com/releases/v8/js/anychart-ui.min_q4b3821eda2.js"></script> | |
| <script src="_deps/cdn.anychart.com/releases/v8/js/anychart-exports.min_q4b3821eda2.js"></script> | |
| <script type="text/javascript">anychart.onDocumentReady(function () { | |
| // create column chart | |
| var chart = anychart.column(); | |
| // set chart title text settings | |
| chart.title('Coastal Water Temperature \nin London vs Edinburgh in 2015 (\xb0C)'); | |
| // create area series with passed data | |
| var data = anychart.data.set(getData()); | |
| var dataLon = data.mapAs({'high': 0, 'low': 1, 'x': 4}); | |
| chart.rangeColumn(dataLon).name('London'); | |
| var dataEdi = data.mapAs({'high': 2, 'low': 3, 'x': 4}); | |
| chart.rangeColumn(dataEdi).name('Edinburgh'); | |
| // set the max and min values on the axes | |
| chart.yScale() | |
| .minimum(4) | |
| .maximum(20); | |
| // enable grid | |
| chart.yGrid().stroke({ | |
| color: "green", | |
| dash: "10 5" | |
| }) | |
| chart.yMinorGrid().stroke({ | |
| color: "green", | |
| dash: "3 5" | |
| }); | |
| // enable grid | |
| chart.xGrid().stroke({ | |
| color: "red", | |
| dash: "10 5" | |
| }); | |
| chart.xMinorGrid().stroke({ | |
| color: "red", | |
| dash: "3 5" | |
| }); | |
| // enable legend | |
| chart.legend(true); | |
| // set tooltip format | |
| chart.tooltip().titleFormat('{%SeriesName} ({%x})'); | |
| // set container id for the chart | |
| chart.container('container'); | |
| // initiate chart drawing | |
| chart.draw(); | |
| }); | |
| function getData() { | |
| return [ | |
| [5.8, 7.9, 6.1, 8.9, 'Jan'], | |
| [4.6, 6.1, 5.5, 8.2, 'Feb'], | |
| [5.9, 8.1, 5.9, 8.1, 'Mar'], | |
| [7.8, 10.7, 7.1, 9.8, 'Apr'], | |
| [10.5, 13.7, 8.3, 10.7, 'May'], | |
| [13.8, 17, 10.7, 14.5, 'June'], | |
| [16.5, 18.5, 12.3, 16.7, 'July'], | |
| [17.8, 19, 14, 16.3, 'Aug'], | |
| [15.4, 17.8, 13.7, 15.3, 'Sep'], | |
| [12.7, 15.3, 12.3, 14.4, 'Oct'], | |
| [9.8, 13, 10.7, 12.9, 'Nov'], | |
| [9, 10.1, 8.2, 11.1, 'Dec'] | |
| ] | |
| }</script> | |
| </body> | |
| </html> |