ChartAct / web /AnyChart /line /chart_0045_line.html
wumumu's picture
Add files using upload-large-folder tool
7b52e07 verified
Raw History Blame Contribute Delete
1.87 kB
<!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.palettes.markers</title>
<link href="https://playground.anychart.com/api/palettes/_samples/anychart.palettes.markers/iframe" rel="canonical">
<meta content="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.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.line([2, 5, 1, 8], [6, 3, 8, 4], [10, 6, 13, 1]);
var series1 = chart.getSeries(0);
series1.markers(true);
var sereis2 = chart.getSeries(1);
sereis2.markers(true);
var series3 = chart.getSeries(2);
series3.markers(true);
// Create markers palette.
var palette = anychart.palettes.markers();
palette.items(['cross', 'circle', 'diagonal-cross']);
chart.markerPalette(palette);
chart.title('Create markers palette');
chart.container('container');
chart.draw();
});</script>
</body>
</html>