Skip to main content
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Source Link

Trace

A programmatic approach using Trace:

Trace[
  BulletGauge[{1, 1.8, 3, 3.4, 4, 5}, {2.4, 2.9}, {0, 3.5, 4.8}],
  _ColorData
] // Flatten // First
ColorData[63, 1]

Check:

ColorData[63, "ColorList"]

enter image description here

Related examples:


Spelunking

This can also be found by spelunking the definition of BulletGauge itself using tools from:

One find that the inner definition is Charting`iLinearGauge

Needs["GeneralUtilities`"]

PrintDefinitions @ Charting`iLinearGauge

Within that one finds a hard-coded color source:

Charting`padList[{{ColorData[63][#1] &, None}}, numvals]

Trace

A programmatic approach using Trace:

Trace[
  BulletGauge[{1, 1.8, 3, 3.4, 4, 5}, {2.4, 2.9}, {0, 3.5, 4.8}],
  _ColorData
] // Flatten // First
ColorData[63, 1]

Check:

ColorData[63, "ColorList"]

enter image description here

Related examples:


Spelunking

This can also be found by spelunking the definition of BulletGauge itself using tools from:

One find that the inner definition is Charting`iLinearGauge

Needs["GeneralUtilities`"]

PrintDefinitions @ Charting`iLinearGauge

Within that one finds a hard-coded color source:

Charting`padList[{{ColorData[63][#1] &, None}}, numvals]

Trace

A programmatic approach using Trace:

Trace[
  BulletGauge[{1, 1.8, 3, 3.4, 4, 5}, {2.4, 2.9}, {0, 3.5, 4.8}],
  _ColorData
] // Flatten // First
ColorData[63, 1]

Check:

ColorData[63, "ColorList"]

enter image description here

Related examples:


Spelunking

This can also be found by spelunking the definition of BulletGauge itself using tools from:

One find that the inner definition is Charting`iLinearGauge

Needs["GeneralUtilities`"]

PrintDefinitions @ Charting`iLinearGauge

Within that one finds a hard-coded color source:

Charting`padList[{{ColorData[63][#1] &, None}}, numvals]
added 465 characters in body
Source Link
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k

Trace

A programmatic approach using Trace:

Trace[
  BulletGauge[{1, 1.8, 3, 3.4, 4, 5}, {2.4, 2.9}, {0, 3.5, 4.8}],
  _ColorData
] // Flatten // First
ColorData[63, 1]

Check:

ColorData[63, "ColorList"]

enter image description here

Related examples:


Spelunking

This can also be found by spelunking the definition of BulletGauge itself using tools from:

One find that the inner definition is Charting`iLinearGauge

Needs["GeneralUtilities`"]

PrintDefinitions @ Charting`iLinearGauge

Within that one finds a hard-coded color source:

Charting`padList[{{ColorData[63][#1] &, None}}, numvals]

A programmatic approach using Trace:

Trace[
  BulletGauge[{1, 1.8, 3, 3.4, 4, 5}, {2.4, 2.9}, {0, 3.5, 4.8}],
  _ColorData
] // Flatten // First
ColorData[63, 1]

Check:

ColorData[63, "ColorList"]

enter image description here

Related examples:

Trace

A programmatic approach using Trace:

Trace[
  BulletGauge[{1, 1.8, 3, 3.4, 4, 5}, {2.4, 2.9}, {0, 3.5, 4.8}],
  _ColorData
] // Flatten // First
ColorData[63, 1]

Check:

ColorData[63, "ColorList"]

enter image description here

Related examples:


Spelunking

This can also be found by spelunking the definition of BulletGauge itself using tools from:

One find that the inner definition is Charting`iLinearGauge

Needs["GeneralUtilities`"]

PrintDefinitions @ Charting`iLinearGauge

Within that one finds a hard-coded color source:

Charting`padList[{{ColorData[63][#1] &, None}}, numvals]
Source Link
Mr.Wizard
  • 273.1k
  • 34
  • 595
  • 1.4k

A programmatic approach using Trace:

Trace[
  BulletGauge[{1, 1.8, 3, 3.4, 4, 5}, {2.4, 2.9}, {0, 3.5, 4.8}],
  _ColorData
] // Flatten // First
ColorData[63, 1]

Check:

ColorData[63, "ColorList"]

enter image description here

Related examples: