Skip to content

Conversation

@marshallpete
Copy link
Member

Description

Support trendlines for scatter plots

Motivation and Context

Trendlines should be supported by all continuous chart types

How Has This Been Tested?

Existing tests pass. New tests were added

Screenshots (if appropriate):

image

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@github-actions
Copy link

github-actions bot commented Feb 8, 2024

@github-actions
Copy link

github-actions bot commented Feb 8, 2024

Comment on lines 461 to 464

// export const isLineTypeArray = (lineTypes: LineTypes): lineTypes is LineType[] => {
// return lineTypes.some((lineType) => typeof lineType === 'string' || isStrokeDashArray(lineType));
// };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did this guy just get forgotten? :)

Copy link
Member Author

@marshallpete marshallpete Feb 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I pasted that there as a reference of how to write a typeguard.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 8, 2024

@github-actions
Copy link

github-actions bot commented Feb 8, 2024

Copy link
Contributor

@olsonjb olsonjb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! I think it'd be nice to fit another story under Scatter or Trendline, but I don't think it's a must have

@marshallpete marshallpete merged commit 387e63f into main Feb 8, 2024
@marshallpete marshallpete deleted the an-339629/scatterTrendlines branch February 8, 2024 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants