定位图
LightningChart组件使用HTML <div>元素和CSS进行定位。
当创建一个新的LightningChart组件时,用户应该提供对应图表对<div>的引用。
<head>
<style>
/* <div> is styled and positioned here */
#my-chart-div {
width: 600px;
height: 400px;
}
</style>
</head>
<body>
<!-- <div> is created here -->
<div id="my-chart-div"></div>
<script>
// <div> is specified for the chart here
const container = document.getElementById("my-chart-div");
const chart = lightningChart().ChartXY({ container });
</script>
</body>
<div>应该在图表之前创建。

QQ交谈
在线咨询

渝公网安备
50010702500608号

客服热线