Search found 14 matches

Go to advanced search

by asryan
Tue Oct 26, 2021 3:26 pm
Forum: Highcharts Usage
Topic: PlotBands Accessibility
Replies: 2
Views: 373
 
Jump to post

Re: PlotBands Accessibility

I forgot to mention that I also don't see an accessibility object in the API docs for plotbands like some other features have https://api.highcharts.com/highcharts/xAxis.plotBands
by asryan
Tue Oct 26, 2021 3:15 pm
Forum: Highcharts Usage
Topic: PlotBands Accessibility
Replies: 2
Views: 373
 
Jump to post

PlotBands Accessibility

I'm using the accessibility module for HighCharts and looking to add plot bands to my chart. However, when investigating the accessibility tree for the resulting chart, I can't find any mention fo the plot bands or the plot band label in it. When looking at the DOM/SVG of the chart, all of the plotb...
by asryan
Wed Sep 08, 2021 2:26 pm
Forum: Highcharts Usage
Topic: Advanced Localization Date Formatting
Replies: 6
Views: 2059
 
Jump to post

Re: Advanced Localization Date Formatting

I wanted to follow up that I found a workaround for the X-axis date formatting, where I was able to take advantage of the highcharts date format. I was able to parse `dateTimeLabelFormat` on the context object and map from the format keys on this page to DateTimeFormatOptions. It's not great, I'd lo...
by asryan
Tue Sep 07, 2021 4:35 pm
Forum: Highcharts Usage
Topic: Advanced Localization Date Formatting
Replies: 6
Views: 2059
 
Jump to post

Re: Advanced Localization Date Formatting

The first example you linked doesn't seem to work - it's formatting all the dates using today's date, not the value of the current point. So every single point says "September 7". I think `value` on `this` is undefined - which makes sense, since it's not a callback but a function that you'...
by asryan
Wed Sep 01, 2021 5:11 pm
Forum: Highcharts Usage
Topic: Advanced Localization Date Formatting
Replies: 6
Views: 2059
 
Jump to post

Advanced Localization Date Formatting

I have a reusable chart component that needs to work in multiple languages. Using the lang option helps with some basic formatting across locales, but dates still aren't formatted quite right (in the US, for example, we don't list a date as "1. Jan.", we'd say "Jan. 1". I know I'...
by asryan
Fri Aug 27, 2021 7:40 pm
Forum: Highcharts Usage
Topic: Flag-Like behavior without using HighStock
Replies: 3
Views: 478
 
Jump to post

Re: Flag-Like behavior without using HighStock

Fantastic - this is exactly what I needed, thank you! I figured it would be something with the svgrenderer
by asryan
Thu Aug 26, 2021 3:31 pm
Forum: Highcharts Usage
Topic: Flag-Like behavior without using HighStock
Replies: 3
Views: 478
 
Jump to post

Flag-Like behavior without using HighStock

Hello - I'm currently trying to replicate some of the behavior of HighStock's flags with just HighCharts. I have this example, modified from a 5-year anniversary timeline example of yours: https://jsfiddle.net/7yrh6v9n/ Because I may end up with many of these flags/annotations, I only want to label ...
by asryan
Thu Aug 05, 2021 7:16 pm
Forum: Highcharts Usage
Topic: Legend Item Truncation with HTML Legend
Replies: 3
Views: 485
 
Jump to post

Re: Legend Item Truncation with HTML Legend

Sorry, not hovering over the series, hovering over the legend item. When `useHtml` is false in the `legend` options, there's a `<title>` svg element rendered, but when `useHTML` is true, just a plain `<span>` is rendered with the overflow ellipses. Even using the `labelFormatter` I can't add a title...
by asryan
Wed Aug 04, 2021 7:39 pm
Forum: Highcharts Usage
Topic: Legend Item Truncation with HTML Legend
Replies: 3
Views: 485
 
Jump to post

Legend Item Truncation with HTML Legend

If I set an `itemWidth` on the legend options, by default I'll get a title SVG that appears when hovering over the item. As soon I set `useHTML: true` on the legend options, I no longer get the title. I've tried to create one myself using the `labelFormatter` option, but the title attribute seems to...
by asryan
Wed Jul 28, 2021 1:13 pm
Forum: Highcharts Usage
Topic: Add button to legend and reposition after redraw
Replies: 3
Views: 1092
 
Jump to post

Re: Add button to legend and reposition after redraw

Thank you, this is fantastic - reimplementing render here feels like a maintenance nightmare since this will probably live for years, so I'll probably leave it and hope the button doesn't overlap a legend item.
by asryan
Mon Jul 26, 2021 8:10 pm
Forum: Highcharts Usage
Topic: Add button to legend and reposition after redraw
Replies: 3
Views: 1092
 
Jump to post

Add button to legend and reposition after redraw

This is a two part question: 1 - I'm trying to add a button to the right of my legend, to show/hide (some) legend items. I'm struggling to position the item, its much more difficult than positioning an item inside the chart area, it's position doesn't seem to be quite as accessible. Is it possible t...
by asryan
Thu Jul 22, 2021 1:47 pm
Forum: Highcharts Usage
Topic: Panning Enabled changes height of chart
Replies: 1
Views: 458
 
Jump to post

Panning Enabled changes height of chart

I've developed a "simple chart" that looks more like a graphic than a chart, with no axis, legend, etc. I noticed that at some point, the height of the chart had changed and it was no longer taking up the full height of the container anymore. I managed to track it down to disabling panning...
by asryan
Thu Jul 01, 2021 4:01 pm
Forum: Highcharts Usage
Topic: Limit height of axis when labels are auto-rotated
Replies: 3
Views: 1235
 
Jump to post

Re: Limit height of axis when labels are auto-rotated

Thanks for that - that's a really obvious solution, which I'm surprised I couldn't come up with. As it turns out, I think there's a bug that was making this not work when using CSS Variables with the theming. I've forked my original fiddle above, and you'll see that when I set `fontSize` to a css va...
by asryan
Wed Jun 23, 2021 4:18 pm
Forum: Highcharts Usage
Topic: Limit height of axis when labels are auto-rotated
Replies: 3
Views: 1235
 
Jump to post

Limit height of axis when labels are auto-rotated

I have a chart with a lot of xAxisCategories, and highcharts is correctly rotating them. However, I'd like to truncate them more than they're currently being truncated, so how do I limit the height of them? In this example, only one category is showing the ellipsis, but I'd like the rotated labels t...

Go to advanced search