javascript - apexcharts somtimes 漂浮在容器上,当我调整窗口大小时它会修复
问题描述
卡email views
:
chart: {
id: "emailViewsStat",
group: "emailStat",
type: "area",
height: 70,
sparkline: {
enabled: true,
},
},
stroke: {
curve: "smooth",
colors: undefined,
width: 3,
},
colors: ["#E5C267"],
fill: {
type: "gradient",
gradient: {
shade: gradientShade,
opacityFrom: 0.2,
opacityTo: 0.5,
stops: [0, 90, 100],
type: "horizontal",
gradientToColors: undefined, // optional, if not defined - uses the shades of same color in series
inverseColors: true,
colorStops: [],
},
},
series: [
{
data: randomizeArray(sparklineData),
},
],
labels: [...Array(24).keys()].map((n) => `2018-09-0${n + 1}`),
yaxis: {
min: 0,
},
labels: [...Array(24).keys()].map((n) => `2018-09-0${n + 1}`),
xaxis: {
type: "datetime",
},
卡email clicks
:
chart: {
id: "emailClickStat",
group: "emailStat",
type: "area",
height: 70,
sparkline: {
enabled: true,
},
},
stroke: {
curve: "smooth",
colors: undefined,
width: 3,
},
colors: ["#E5C267"],
fill: {
type: "gradient",
gradient: {
shade: gradientShade,
opacityFrom: 0.2,
opacityTo: 0.5,
stops: [0, 90, 100],
type: "horizontal",
gradientToColors: undefined, // optional, if not defined - uses the shades of same color in series
inverseColors: true,
colorStops: [],
},
},
series: [
{
name: "Expenses",
data: randomizeArray(sparklineData),
},
],
labels: [...Array(24).keys()].map((n) => `2018-09-0${n + 1}`),
yaxis: {
min: 0,
},
xaxis: {
type: "datetime",
},
colors: ["#E5C267"],
卡CTR
:
chart: {
type: "bar",
height: 100,
sparkline: { enabled: !0 },
toolbar: { show: !1 },
},
states: { hover: { filter: "none" } },
colors: [a, a, p, a, a, a],
series: [{ name: "Sessions", data: [75, 125, 5, 175, 125, 75, 25] }],
grid: { show: !1, padding: { left: 0, right: 0 } },
plotOptions: {
bar: { columnWidth: "35%", distributed: !0, endingShape: "rounded" },
},
tooltip: { x: { show: !1 } },
xaxis: { type: "numeric" },
我希望在不调整大小的情况下优化图表。
谢谢。
只是一些细节:细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节细节
解决方案
推荐阅读
- javascript - 在 Mapbox gl js 中更改地图样式后我无法添加新图层
- scala - 有没有办法使用 Akka Stash 而不是优先邮箱?
- windows - Tensorflow 找不到 DLL,但 DLL 目录在 PATH 中
- reactjs - 表单文本字段更新
- javascript - 使用刀片中的参数调用 javascript 函数
- android - 如何隐藏正在播放的视频 Youtube player api android
- laravel - Laravel中有多行时如何更新行
- javascript - AngularJS-MVVM-绑定视图和模型(范围)的问题
- c# - HTTPWebRequest 未添加 Accept 标头
- c++ - 如何在类上下文中使用 fcntl.h 库?