Chart / dataset /web /AnyChart /scatter /chart_0045_scatter.html
Pekku's picture
Upload folder using huggingface_hub
79dc9c8 verified
<!doctype html>
<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>anychart.core.cartesian.series.Bubble.negativeHatchFill get</title>
<link href="https://playground.anychart.com/api/core/cartesian/series/_samples/anychart.core.cartesian.series.Bubble.negativeHatchFill_get/iframe" rel="canonical">
<meta content="Bubble 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.14.1/css/anychart-ui.min.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.js"></script>
<script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-exports.min.js"></script>
<script src="_deps/cdn.anychart.com/releases/8.14.1/js/anychart-ui.min.js"></script>
<script type="text/javascript">anychart.onDocumentReady(function () {
var chart = anychart.bubble();
var series1 = chart.bubble([
{x: 1, value: 1.0, size: 2},
{x: 2, value: 1.6, size: -7},
{x: 3, value: 1.2, size: -4},
{x: 4, value: 1.9, size: 3}
]);
series1.displayNegative(true);
series1.negativeHatchFill('horizontal');
var series2 = chart.bubble([
{x: 1, value: 2.0, size: -4},
{x: 2, value: 2.6, size: -1},
{x: 3, value: 3.2, size: 3},
{x: 4, value: 2.9, size: 4}
]);
series2.displayNegative(true);
// Get negative hatch fill.
var negativeHatchFill = series1.negativeHatchFill();
series2.negativeHatchFill(negativeHatchFill);
chart.title('Get and use negative hatch fill');
chart.container('container');
chart.draw();
});</script>
</body>
</html>