Jump to content

Template talk:Data bars

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Is it possible to represent Negative Values? (04/2017)

[edit]

No. Negatives would need a different method. Jonathan Lane Studeman (talk) 11:28, 18 April 2017 (UTC)[reply]

Problems using this template on mobile units

[edit]

Observed limitation: This template displays nicely on my laptop, but gives a very garbled display on my Android Phone. Anhn (talk) 18:04, 4 June 2018 (UTC)[reply]

Is it possible to change label font sizes?

[edit]

Guarapiranga (talk) 00:34, 4 October 2019 (UTC)[reply]

Yes, we can with template:small. — Guarapiranga (talk) 04:02, 4 October 2019 (UTC)[reply]

Is it possible to change the legend position?

[edit]

So that the chart can fit mobile screens. — Guarapiranga (talk) 04:03, 4 October 2019 (UTC)[reply]

Is ist possible to hide the legend?

[edit]

@Jonathan Lane Studeman: Hi! Through work of a user there is the template also in the de.wp. I would like to use the template for a specific overview. In my case it is useful to work without legend, because no distinction has to be made. Is it possible? Can you write the source code for it? Thanks in advance. --Ch ivk (talk) 16:25, 25 February 2023 (UTC)[reply]

If you mean simply hiding the main labels on each column or row, you could make each a "non-breaking space,"  .
Any more extenisive modification, though, is not somethig I'll be able to do. Hope this helps.
This . . .
{{Data bars
| columns = 12 |Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec
| green| Apples| 60| 70| 90| 30| 50| 30|100|130|120| 90| 50|110
|yellow| Bananas| 90| 80|110| 60| 70| 80| 70| 70| 40| 50| 50| 60
|orange| Oranges| 50| 40| 60|110| 90| 60| 30| 60| 70| 60| 80| 40
}}
Would appear like this with non-breaking spaces instead of months...
{{Data bars
| columns = 12 | | | | | | | | | | | | 
| green| Apples| 60| 70| 90| 30| 50| 30|100|130|120| 90| 50|110
|yellow| Bananas| 90| 80|110| 60| 70| 80| 70| 70| 40| 50| 50| 60
|orange| Oranges| 50| 40| 60|110| 90| 60| 30| 60| 70| 60| 80| 40
}} Jonathan Lane Studeman (talk) 10:37, 26 February 2023 (UTC)[reply]

Remove "total" from legend

[edit]

Is it possible to remove the "total" element from the legend? As well as the numbers above each bar?, thanks in advance, ~~~~ mikelzubi (talk) 00:15, 29 August 2024 (UTC)[reply]