# Tag Archives: data analysis

## Animate rainbow colors in C#

The example Map numeric values to and from colors in a color gradient in C# draws a color gradient that uses rainbow colors. This example animates that one. When you click on the color gradient, the following code starts or … Continue reading

## Make a sunburst chart in C#, Part 4

The previous post showed how to make a sunburst chart with curved text. This example extends that one so it can draw multi-line text. The previous post used the DrawTextOnArc method to draw curved text. The text is a distance … Continue reading

## Make a sunburst chart in C#, Part 3

The post Make a sunburst chart in C#, Part 1 shows how to build a basic sunburst chart. The post Make a sunburst chart in C#, Part 2 enhances that example by drawing each node’s text at an angle so … Continue reading

## Make a sunburst chart in C#, Part 2

The post Make a sunburst chart in C#, Part 1 explained how to build a simple sunburst chart. Unfortunately the node labels used by that chart didn’t fit their wedges very well because the text was all drawn horizontally. This … Continue reading

Posted in drawing, graphics, mathematics | | 2 Comments

## Make a sunburst chart in C#, Part 1

A sunburst chart displays hierarchical data in a circular diagram. The hierarchy’s root is drawn in the center. Its children sit in a ring around the root. After that, each node’s wedge in a ring is divided among its children … Continue reading

Posted in drawing, graphics, mathematics | | 7 Comments

## Map numeric values to and from colors in a color gradient in C#

Sometimes it’s useful to map numeric values to and from colors. For example, intensity of color could indicate population density, agricultural yield, rainfall, or other values on a map. This program draws a color-selection rainbow that includes the colors red, … Continue reading

## Map numeric values to colors in a rainbow in C#

Sometimes it’s useful to map numeric values to colors. For example, intensity of color could indicate population density, agricultural yield, rainfall, or other values on a map. The following MapRainbowColor method maps a value between two bounds to a rainbow … Continue reading

Posted in graphics, mathematics | | 3 Comments