question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’m submitting a …

  • bug report - search github for a similar issue or PR before submitting
  • feature request
  • support request - use StackOverflow (add the ngx-charts tag) or the gitter chat for support questions

Feature In my opinion there should be an option to specify a title of a chart and the position of this title. For example in my case I would like to have some kind of text inside the doughnut chart, e.g total number of values or something like that.

Current behavior

As far as I know currently you can’t create a chart’s title and specify a place where it belongs.

Expected behavior

As said in Feature section, imo there should be an option to specify a title and titlePosition in the same way as labels or something.

What is the motivation / use case for changing the behavior?

For example: in league of legends you get a grade after every game, grade is connected with champion. And imagine a case, when you want to make a chart with S and A grades. So on the chart there are champion names and the count of grades, you have two almost same charts, and ofc you can just make a header just above te chart, but in this case in my option big S inside the doughnut would be the best pick. Moreover for example you can show the percent of total in the center of doughnut while there is a value in tooltip.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:7
  • Comments:8

github_iconTop GitHub Comments

3reactions
KaranTrivedicommented, Mar 15, 2022

lmao how does a charting library not have a title for charts?

1reaction
sarora2073commented, Aug 26, 2019

+1 on putting this feature into ngx-charts. Titles ought be centered based on the width of the chart to prevent it from looking off.

For now, i’m hard-coding the width of the chart into the header (as shown below). using angular/flex-layout for convenience.

<!-- CHART HEADER -->
      <div fxFlex="0 0 **700px**" fxLayoutAlign="center start">
        <span>{{myChart.title}}</span>
      </div>
<!-- / CHART HEADER -->

<!-- CHART -->
      <div fxFlex="1 0 100%" fxLayout="row">
        <ngx-charts-bar-horizontal-stacked [view]=[**700**,250]>
		..
        </ngx-charts-bar-horizontal-stacked>
      </div>
<!-- / CHART -->
Read more comments on GitHub >

github_iconTop Results From Across the Web

Add or remove titles in a chart - Microsoft Support
In the chart, select the "Chart Title" box and type in a title. Select the + sign to the top-right of the chart....
Read more >
How To Add a Title To A Chart or Graph In Excel - Excelchat
In the Drop-down menu, we will click on Charts Layout and ; We will go the Design tab, then Add Chart Element, Tap...
Read more >
How to add titles to Excel charts in a minute - Ablebits
If you go to DESIGN -> Add Chart Element -> Chart Title again and choose 'More Title Options' at the bottom of the...
Read more >
How to Add a Title to a Chart in Excel (In 3 Easy Clicks)
Here we come with another simple video tutorial on how to add a title to a chart in Excel in three easy clicks....
Read more >
Title | Chart.js
The chart title defines text to draw at the top of the chart. # Title Configuration. Namespace: options.plugins.title , the global options for ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found