@kodiak-finance/orderly-chart 2.8.21-alpha.0 → 2.8.21-rc.1

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/dist/index.mjs CHANGED
@@ -744,7 +744,12 @@ var CombinedPnLChart = (props) => {
744
744
  ComposedChart,
745
745
  {
746
746
  data: transformedData,
747
- margin: { left: 45, top: 10, right: 50, bottom: 20 },
747
+ margin: {
748
+ left: props.isMobile ? 18 : 45,
749
+ top: 8,
750
+ right: props.isMobile ? 18 : 24,
751
+ bottom: props.isMobile ? 12 : 20
752
+ },
748
753
  syncId: "symbol-performance",
749
754
  children: [
750
755
  /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "cumulativeGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
@@ -1042,7 +1047,12 @@ var CombinedVolumeChart = (props) => {
1042
1047
  ComposedChart,
1043
1048
  {
1044
1049
  data: transformedData,
1045
- margin: { left: 45, top: 10, right: 50, bottom: 20 },
1050
+ margin: {
1051
+ left: props.isMobile ? 18 : 45,
1052
+ top: 8,
1053
+ right: props.isMobile ? 18 : 24,
1054
+ bottom: props.isMobile ? 12 : 20
1055
+ },
1046
1056
  syncId: "symbol-performance",
1047
1057
  children: [
1048
1058
  /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "volumeGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
@@ -1347,7 +1357,12 @@ var CombinedFeesChart = (props) => {
1347
1357
  ComposedChart,
1348
1358
  {
1349
1359
  data: transformedData,
1350
- margin: { left: 45, top: 10, right: 50, bottom: 20 },
1360
+ margin: {
1361
+ left: props.isMobile ? 18 : 45,
1362
+ top: 8,
1363
+ right: props.isMobile ? 18 : 24,
1364
+ bottom: props.isMobile ? 12 : 20
1365
+ },
1351
1366
  syncId: "symbol-performance",
1352
1367
  children: [
1353
1368
  /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("linearGradient", { id: "feesGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
@@ -1632,7 +1647,12 @@ var CombinedPriceChart = (props) => {
1632
1647
  ComposedChart,
1633
1648
  {
1634
1649
  data,
1635
- margin: { left: 45, top: 10, right: 50, bottom: 20 },
1650
+ margin: {
1651
+ left: props.isMobile ? 18 : 45,
1652
+ top: 8,
1653
+ right: props.isMobile ? 18 : 24,
1654
+ bottom: props.isMobile ? 12 : 20
1655
+ },
1636
1656
  syncId: "symbol-performance",
1637
1657
  children: [
1638
1658
  /* @__PURE__ */ jsx(Tooltip, { cursor: /* @__PURE__ */ jsx(CustomizedCross5, {}), content: /* @__PURE__ */ jsx(CustomTooltip4, {}) }),