Download web/AnyChart/scatter/chart_0048_scatter.html from chartact-benchmark/ChartAct: direct link, hf CLI and curl.
- Browser
- Download file 4.76 kB
-
https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AnyChart/scatter/chart_0048_scatter.html
- Command line
-
hf download hf://datasets/chartact-benchmark/ChartAct/web/AnyChart/scatter/chart_0048_scatter.html
-
curl -L -o chart_0048_scatter.html https://huggingface.co/datasets/chartact-benchmark/ChartAct/resolve/main/web/AnyChart/scatter/chart_0048_scatter.html
4.76 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>BCT Scatter Bubble Chart</title> | |
| <link href="https://playground.anychart.com/dzSr246q/iframe" rel="canonical"> | |
| <meta content="Bubble Chart,Scatter Chart,Statistical Data" 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.10.0/css/anychart-ui.min_qe95e7e741b.css" rel="stylesheet" type="text/css"> | |
| <style>html, body, #container { | |
| width: 100%; | |
| height: 95%; | |
| margin: 0; | |
| padding: 0; | |
| }</style> | |
| </head> | |
| <body> | |
| <div id="container"></div> | |
| <script src="_deps/cdn.anychart.com/releases/8.10.0/js/anychart-base.min_qe95e7e741b.js"></script> | |
| <script src="_deps/cdn.anychart.com/releases/8.10.0/js/anychart-exports.min_qe95e7e741b.js"></script> | |
| <script src="_deps/cdn.anychart.com/releases/8.10.0/js/anychart-ui.min_qe95e7e741b.js"></script> | |
| <script type="text/javascript">anychart.onDocumentReady(function () { | |
| // create data | |
| var data = [ | |
| {x: 1, value: 1, size: 107, info: "?????", | |
| normal: { | |
| fill: "#3300CC 0.2", | |
| stroke: "#3300CC 0.1" | |
| }, | |
| }, | |
| {x: 1, value: 2, size: 105, info: "?????????", | |
| normal: { | |
| fill: "#990066 0.2", | |
| stroke: "#990066 0.1" | |
| }, | |
| }, | |
| {x: 1, value: 3, size: 48, info: "???", | |
| normal: { | |
| fill: "#FFCC33 0.2", | |
| stroke: "#FFCC33 0.1" | |
| }, | |
| }, | |
| {x: 1, value: 4, size: 40, info: "??????", | |
| normal: { | |
| fill: "#228B22 0.2", | |
| stroke: "#228B22 0.1" | |
| }, | |
| }, | |
| {x: 1, value: 5, size: 36, info: "????????", | |
| normal: { | |
| fill: "#33CCCC 0.2", | |
| stroke: "#33CCCC 0.1" | |
| }, | |
| }, | |
| {x: 1, value: 7, size: 157, info: "??????", | |
| normal: { | |
| fill: "#999999 0.2", | |
| stroke: "#999999 0.1" | |
| }, | |
| }, | |
| {x: 3, value: 1, size: 170, info: "?????", | |
| normal: { | |
| fill: "#3300CC 0.6", | |
| stroke: "#3300CC" | |
| }, | |
| }, | |
| {x: 3, value: 3, size: 103, info: "?????????", | |
| normal: { | |
| fill: "#990066 0.6", | |
| stroke: "#990066" | |
| }, | |
| }, | |
| {x: 3, value: 2, size: 156, info: "???", | |
| normal: { | |
| fill: "#FFCC33 0.6", | |
| stroke: "#FFCC33" | |
| }, | |
| }, | |
| {x: 3, value: 4, size: 89, info: "??????", | |
| normal: { | |
| fill: "#228B22 0.6", | |
| stroke: "#228B22" | |
| }, | |
| }, | |
| {x: 3, value: 5, size: 33, info: "???????", | |
| normal: { | |
| fill: "#005e9e 0.6", | |
| stroke: "#005e9e" | |
| }, | |
| }, | |
| {x: 3, value: 7, size: 208, info: "??????", | |
| normal: { | |
| fill: "#999999 0.6", | |
| stroke: "#999999" | |
| }, | |
| }, | |
| {x: 2, value: 2, size: 108, info: "?????", | |
| normal: { | |
| fill: "#3300CC 0.6", | |
| stroke: "#3300CC" | |
| }, | |
| }, | |
| {x: 2, value: 1, size: 109, info: "?????????", | |
| normal: { | |
| fill: "#990066 0.6", | |
| stroke: "#990066" | |
| }, | |
| }, | |
| {x: 2, value: 5, size: 33, info: "????????", | |
| normal: { | |
| fill: "#33CCCC 0.6", | |
| stroke: "#33CCCC" | |
| }, | |
| }, | |
| {x: 2, value: 3, size: 62, info: "???", | |
| normal: { | |
| fill: "#FFCC33 0.6", | |
| stroke: "#FFCC33" | |
| }, | |
| }, | |
| {x: 2, value: 4, size: 42, info: "??????", | |
| normal: { | |
| fill: "#228B22 0.6", | |
| stroke: "#228B22" | |
| }, | |
| }, | |
| {x: 2, value: 7, size: 144, info: "??????", | |
| normal: { | |
| fill: "#999999 0.6", | |
| stroke: "#999999" | |
| }, | |
| }, | |
| ]; | |
| // create a chart | |
| var chart = anychart.scatter(); | |
| // create a bubble series and set the data | |
| var series = chart.bubble(data); | |
| // limit bubbles size | |
| chart.minBubbleSize("4%"); | |
| chart.maxBubbleSize("10%"); | |
| // set minimum and maximum for axes | |
| chart.yScale().minimum(0); | |
| chart.yScale().maximum(8); | |
| chart.xScale().minimum(0); | |
| chart.xScale().maximum(4); | |
| // inverts y scale. Now all elements has inverted (from top to bottom) direction | |
| chart.yScale().inverted(true); | |
| // enable major grids | |
| chart.xGrid().enabled(true); | |
| chart.yGrid().enabled(false); | |
| // set the container id | |
| chart.container("container"); | |
| // initiate drawing the chart | |
| chart.draw(); | |
| }); | |
| </script> | |
| </body> | |
| </html> |