Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

add parameter to handle svg aspect ratio #97

Merged
merged 1 commit into from
Mar 21, 2018
Merged

Conversation

aguerot
Copy link
Contributor

@aguerot aguerot commented Mar 21, 2018

In some case it is interesting to be able to control svg aspect ratio
Using ngx-trend as such:
<ngx-trend autoDraw="true" autoDrawDuration="3000" autoDrawEasing="ease-out" smooth="true" preserveAspectRatio="none" height="100" [data]="placeholderData" [gradient]="gradient" [radius]="radius" [strokeWidth]="strokeWidth"[strokeLinecap]="strokeLinecap">
allows to address some scenarios where the default 1:4 ratio would not fit in wide screen

@scttcper scttcper self-assigned this Mar 21, 2018
@codecov-io
Copy link

codecov-io commented Mar 21, 2018

Codecov Report

Merging #97 into master will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #97      +/-   ##
==========================================
+ Coverage   94.02%   94.05%   +0.03%     
==========================================
  Files          15       15              
  Lines         184      185       +1     
  Branches       22       22              
==========================================
+ Hits          173      174       +1     
  Misses          6        6              
  Partials        5        5
Impacted Files Coverage Δ
src/lib/trend/trend.component.ts 98.11% <100%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update decab85...a7b85f4. Read the comment docs.

@scttcper scttcper merged commit f694c13 into scttcper:master Mar 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants