koishi-plugin-chat-analyse 1.4.14 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1709,11 +1709,11 @@ var Renderer = class {
|
|
|
1709
1709
|
svgElements += `<polyline points="${points}" fill="none" stroke="${color}" stroke-width="2"/>`;
|
|
1710
1710
|
});
|
|
1711
1711
|
const chartAreaHeight = 280;
|
|
1712
|
-
const legendMargin =
|
|
1712
|
+
const legendMargin = 20;
|
|
1713
1713
|
let legendBlockHeight = 0;
|
|
1714
1714
|
if (series.length > 1) {
|
|
1715
1715
|
const legendRows = Math.ceil(series.length / 3);
|
|
1716
|
-
const legendRowHeight =
|
|
1716
|
+
const legendRowHeight = 15;
|
|
1717
1717
|
legendBlockHeight = legendRows * legendRowHeight;
|
|
1718
1718
|
const LEGEND_START_Y = chartAreaHeight + legendMargin;
|
|
1719
1719
|
const columnWidth = 560 / 3;
|