0

Refer plunker url for the demo.

As per the snapshot:

enter image description here

Data values are coming the same format they are being fetched. It should have option to display in unit:

like 2140000 to be displayed as 2 GB.

Code Sample:

export class App {

    //single: any[];
    multi: any[];

    // Size to be displayed 
    view: any[] = [1000, 400];

    // options

    showXAxis = true;
    showYAxis = true;
    gradient = false;
    showLegend = true;
    showXAxisLabel = true;
    xAxisLabel = 'Hour';
    showYAxisLabel = true;
    yAxisLabel = 'Days';
}
ssuperczynski
  • 3,190
  • 3
  • 44
  • 61
Manhar Sapra
  • 659
  • 1
  • 11
  • 21
  • You probably need to make a feature request on GitHub to do that. The bar is not a proper d3 axis, where you might be able to format the values; it's just a `div` with more `div`s containing text elements at either end. You can use standard DOM manipulation techniques to change it. – i alarmed alien Oct 23 '18 at 05:12
  • Hi @ialarmedalien,Could you please let me know if I have to raise PR for this. Since I am not sure which function module to be modified for same. – Manhar Sapra Oct 26 '18 at 10:05
  • There isn't a way to do it with the existing API; you would have to manipulate the DOM elements after the chart had been drawn, which is a bit of a hack. I would raise an issue on GitHub about it. – i alarmed alien Oct 26 '18 at 11:37
  • Hi @ialarmedalien. I have raised one issue .Please refer https://github.com/swimlane/ngx-charts/issues/1013 – Manhar Sapra Oct 31 '18 at 09:45
  • Hi @ialarmedalien.Could u please suggest any alternate hack for this. I have not received any update from library github account – Manhar Sapra Nov 27 '18 at 11:12

0 Answers0