Ngx-charts: Reference Lines in Bar chart

Created on 27 Nov 2018  路  13Comments  路  Source: swimlane/ngx-charts

_Originally posted by @marjan-georgiev in https://github.com/swimlane/ngx-charts/pull/422#issuecomment-309456263_

Most helpful comment

I implemented this feature locally a while ago, because I needed it so much, I can do a PR with these modifications

BarChart

All 13 comments

This would be an awesome feature!

Yes, absolutely. Any idea when this is coming? The research project I'm working on requires background reference lines in bar graphs. I'm certain that this feature would make a number of people very happy.

I implemented this feature locally a while ago, because I needed it so much, I can do a PR with these modifications

BarChart

@AlisonVilela I would love to see a PR for this, or just your implementation would also be very helpful! Thanks in advance

any updates on this?

@AlisonVilela can you please post your solution?

@AlisonVilela would you mind sharing your implementation ?

I faced the same issue. My solution might not be the cleanest but it worked. You can create a new component and copy the ngx-bar-chart component from the ngx-charts-Module into it.
Then add the following 3 lines to the ngx-charts-y-axis:

[referenceLines]="referenceLines"
[showRefLines]="showRefLines"  
[showRefLabels]="showRefLabels"

Thanks kolya-kra I just did this with stacked bar chart and works like a charm. If somebody need it I can send more info.

image

Can we support this?

@EvaristoPerez hi can you please share what you did? We are running into the same problem. thanks!

@EvaristoPerez Hi, is there any repo where we can check it out ? or at least any guide? Thanks

@kolya-kra Hi, Can you share any progress or support us with a guide pls? Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amcdnl picture amcdnl  路  4Comments

merinshaji picture merinshaji  路  3Comments

faisalnet5 picture faisalnet5  路  3Comments

kakalos12 picture kakalos12  路  4Comments

Jacquers picture Jacquers  路  3Comments