Skip to content

Commit

Permalink
LineChart updates
Browse files Browse the repository at this point in the history
  • Loading branch information
gvreddy04 committed Jun 22, 2024
1 parent 8eb0631 commit d32f013
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
BorderColor = c.ToRgbString(),
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string> { c.ToRgbString() },
PointRadius = new List<int> { 0 }, // hide points
PointHoverRadius = new List<int> { 4 }
PointBackgroundColor = c.ToRgbString(),
PointRadius = 0, // hide points
PointHoverRadius = 4
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@
BorderColor = "rgb(88, 80, 141)",
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string>{ "rgb(88, 80, 141)" },
PointBorderColor = new List<string>{ "rgb(88, 80, 141)" },
PointRadius = new List<int>{0}, // hide points
PointHoverRadius = new List<int>{4},
PointBackgroundColor = "rgb(88, 80, 141)",
PointBorderColor = "rgb(88, 80, 141)",
PointRadius = 0, // hide points
PointHoverRadius = 4,
},
new LineChartDataset()
{
Expand All @@ -86,10 +86,10 @@
BorderColor = "rgb(255, 166, 0)",
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string>{ "rgb(255, 166, 0)" },
PointBorderColor = new List<string>{ "rgb(255, 166, 0)" },
PointRadius = new List<int>{0}, // hide points
PointHoverRadius = new List<int>{4},
PointBackgroundColor = "rgb(255, 166, 0)",
PointBorderColor = "rgb(255, 166, 0)",
PointRadius = 0, // hide points
PointHoverRadius = 4,
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@
BorderColor = c.ToRgbString(),
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string> { c.ToRgbString() },
PointRadius = new List<int> { 0 }, // hide points
PointHoverRadius = new List<int> { 4 }
PointBackgroundColor = c.ToRgbString(),
PointRadius = 0, // hide points
PointHoverRadius = 4
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
BorderColor = colors[0],
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string> { colors[0] },
PointRadius = new List<int> { 0 }, // hide points
PointHoverRadius = new List<int> { 4 }
PointBackgroundColor = colors[0],
PointRadius = 0, // hide points
PointHoverRadius = 4
};
datasets.Add(dataset1);

Expand All @@ -34,9 +34,9 @@
BorderColor = colors[1],
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string> { colors[1] },
PointRadius = new List<int> { 0 }, // hide points
PointHoverRadius = new List<int> { 4 }
PointBackgroundColor = colors[1],
PointRadius = 0, // hide points
PointHoverRadius = 4
};
datasets.Add(dataset2);

Expand All @@ -48,9 +48,9 @@
BorderColor = colors[2],
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string> { colors[2] },
PointRadius = new List<int> { 0 }, // hide points
PointHoverRadius = new List<int> { 4 }
PointBackgroundColor = colors[2],
PointRadius = 0, // hide points
PointHoverRadius = 4
};
datasets.Add(dataset3);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
BorderColor = colors[0],
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string> { colors[0] },
PointRadius = new List<int> { 3 }, // show points
PointHoverRadius = new List<int> { 4 },
PointBackgroundColor = colors[0],
PointRadius = 3, // show points
PointHoverRadius = 4,

// datalabels
Datalabels = new() { Alignment = Alignment.End, Anchor = Anchor.End }
Expand All @@ -37,9 +37,9 @@
BorderColor = colors[1],
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string> { colors[1] },
PointRadius = new List<int> { 3 }, // show points
PointHoverRadius = new List<int> { 4 },
PointBackgroundColor = colors[1],
PointRadius = 3, // show points
PointHoverRadius = 4,

// datalabels
Datalabels = new() { Alignment = Alignment.End, Anchor = Anchor.End }
Expand All @@ -54,9 +54,9 @@
BorderColor = colors[2],
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string> { colors[2] },
PointRadius = new List<int> { 3 }, // show points
PointHoverRadius = new List<int> { 4 },
PointBackgroundColor = colors[2],
PointRadius = 3, // show points
PointHoverRadius = 4,

// datalabels
Datalabels = new() { Alignment = Alignment.Start, Anchor = Anchor.Start }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
BorderColor = c.ToRgbString(),
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string> { c.ToRgbString() },
PointRadius = new List<int> { 0 }, // hide points
PointHoverRadius = new List<int> { 4 }
PointBackgroundColor = c.ToRgbString(),
PointRadius = 0, // hide points
PointHoverRadius = 4
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
BorderColor = colors[0],
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string> { colors[0] },
PointRadius = new List<int> { 0 }, // hide points
PointHoverRadius = new List<int> { 4 }
PointBackgroundColor = colors[0],
PointRadius = 0, // hide points
PointHoverRadius = 4
};
datasets.Add(dataset1);

Expand All @@ -34,9 +34,9 @@
BorderColor = colors[1],
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string> { colors[1] },
PointRadius = new List<int> { 0 }, // hide points
PointHoverRadius = new List<int> { 4 }
PointBackgroundColor = colors[1],
PointRadius = 0, // hide points
PointHoverRadius = 4
};
datasets.Add(dataset2);

Expand All @@ -48,9 +48,9 @@
BorderColor = colors[2],
BorderWidth = 2,
HoverBorderWidth = 4,
PointBackgroundColor = new List<string> { colors[2] },
PointRadius = new List<int> { 0 }, // hide points
PointHoverRadius = new List<int> { 4 }
PointBackgroundColor = colors[2],
PointRadius = 0, // hide points
PointHoverRadius = 4
};
datasets.Add(dataset3);

Expand Down
Loading

0 comments on commit d32f013

Please sign in to comment.