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