Skip to content
Board Index
FAQ
Login
Register
Board index
Highcharts - The JavaScript Charting Framework
Highcharts Usage
Unanswered topics
Active topics
Board Index
FAQ
Search
Login
Register
Highchart Angular Abs Function Not Working
Post Reply
Print view
2 posts • Page
1
of
1
codershikhar
Posts:
1
Joined:
Sat Sep 16, 2023 1:55 pm
Highchart Angular Abs Function Not Working
Quote
Sat Sep 16, 2023 1:59 pm
I am trying to replicate the following Javascript graph in Angular.
https://www.highcharts.com/demo/highcha ... tive-stack
To make this work I need abs function to work in format for labels.
How to make it work?
jakub.j
Posts:
884
Joined:
Tue Jan 24, 2023 11:14 am
Re: Highchart Angular Abs Function Not Working
Quote
Mon Sep 18, 2023 7:41 am
Welcome to our forum and thanks for contacting us with your question!
Instead of
tooltip.format
, you can use
tooltip.formatter
and use js Math.abs method inside along with toFixed(). It gives the same result.
Demo:
https://stackblitz.com/edit/highcharts- ... mponent.ts
Let me know if you have any further questions!
Best regards
Jakub
Jakub
Highcharts Developer
Display posts from previous:
All posts
1 day
7 days
2 weeks
1 month
3 months
6 months
1 year
Sort by
Author
Post time
Subject
Ascending
Descending
Post Reply
Print view
2 posts • Page
1
of
1
Return to “Highcharts Usage”
Jump to
Highcharts - The JavaScript Charting Framework
Highcharts Usage
Highcharts Stock
Highcharts Maps
Highcharts Gantt
Highcharts Dashboards
Highcharts Cloud
Wrappers - The Official Highcharts Wrappers
Highcharts .NET
Highslide JS - The JavaScript Image and Media Viewer
Highslide JS Usage
Highslide Editor
Highslide FAQ
News