Download web/AnyChart/line/chart_0040_line.html from chartact-benchmark/ChartAct: direct link, hf CLI and curl.
- Browser
- Download file 2.77 kB
-
https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AnyChart/line/chart_0040_line.html
- Command line
-
hf download hf://datasets/chartact-benchmark/ChartAct/web/AnyChart/line/chart_0040_line.html
-
curl -L -o chart_0040_line.html https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AnyChart/line/chart_0040_line.html
2.77 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>Jump Line Chart</title> | |
| <link href="https://www.anychart.com/products/anychart/gallery/Line_Charts/Jump_Line_Chart.php" rel="canonical"> | |
| <meta content="Line Chart,Jump Line Chart" 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/8.14.1/css/anychart-ui.min_qe95e7e741b.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/8.14.1/js/anychart-base.min_qe95e7e741b.js"></script> | |
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-exports.min_qe95e7e741b.js"></script> | |
| <script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-ui.min_qe95e7e741b.js"></script> | |
| <script type="text/javascript"> | |
| anychart.onDocumentReady(function () { | |
| // create cartesian chart | |
| var chart = anychart.cartesian(); | |
| // create data set on our data | |
| var dataSet = anychart.data.set(getData()); | |
| // map data for the first series,take value from first column of data set | |
| var seriesData = dataSet.mapAs({ x: 0, value: 1 }); | |
| // create jumpLine series with mapping data | |
| chart.jumpLine(seriesData); | |
| // set chart title text settings | |
| chart.title('Interest Rates Continue to Increase'); | |
| // set scale minimum | |
| chart.yScale().minimum(0); | |
| // tooltips position and interactivity settings | |
| chart.tooltip().positionMode('point').format('Value: {%Value}%'); | |
| // set interactivity | |
| chart.interactivity().hoverMode('by-x'); | |
| // set yAxis labels formatter | |
| chart.yAxis().labels().format('{%Value}%'); | |
| // axes titles | |
| chart.xAxis(true); | |
| // set container id for the chart | |
| chart.container('container'); | |
| // initiate chart drawing | |
| chart.draw(); | |
| }); | |
| function getData() { | |
| return [ | |
| ['Q1 2014', 0.9], | |
| ['Q2 2014', 0.9], | |
| ['Q3 2014', 1.8], | |
| ['Q4 2014', 2.1], | |
| ['Q1 2015', 2.5], | |
| ['Q2 2015', 2.5], | |
| ['Q3 2015', 2.1], | |
| ['Q4 2015', 2.5], | |
| ['Q1 2016', 3.0], | |
| ['Q2 2016', 3.0], | |
| ['Q3 2016', 3.5], | |
| ['Q4 2016', 4] | |
| ]; | |
| } | |
| </script> | |
| </body> | |
| </html> | |