@aclymatepackages/modules 1.0.27 → 1.0.29

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.
@@ -326,7 +326,8 @@ const EmissionsChart = _ref14 => {
326
326
  convertCarbonUnits = tons => tons,
327
327
  displayUnitLabel,
328
328
  branding,
329
- netZeroPercentage
329
+ netZeroPercentage,
330
+ noLine = true
330
331
  } = _ref14;
331
332
  const {
332
333
  chartLabelsArray,
@@ -390,7 +391,7 @@ const EmissionsChart = _ref14 => {
390
391
  };
391
392
  const chartData = buildChartData();
392
393
  const findFirstYearBaseline = () => {
393
- if ((0, _dayjs.default)().diff((0, _dayjs.default)(startDate), "month") < 12) {
394
+ if ((0, _dayjs.default)().diff((0, _dayjs.default)(startDate), "month") < 12 || noLine) {
394
395
  return false;
395
396
  }
396
397
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aclymatepackages/modules",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "Aclymate modules",
5
5
  "author": "William Loopesko",
6
6
  "main": "dist/index.js",
@@ -342,6 +342,7 @@ const EmissionsChart = ({
342
342
  displayUnitLabel,
343
343
  branding,
344
344
  netZeroPercentage,
345
+ noLine = true,
345
346
  }) => {
346
347
  const {
347
348
  chartLabelsArray,
@@ -426,7 +427,7 @@ const EmissionsChart = ({
426
427
  const chartData = buildChartData();
427
428
 
428
429
  const findFirstYearBaseline = () => {
429
- if (dayjs().diff(dayjs(startDate), "month") < 12) {
430
+ if (dayjs().diff(dayjs(startDate), "month") < 12 || noLine) {
430
431
  return false;
431
432
  }
432
433