/
GeoExe
/
NamesHistogram_Task
Обзор
Документация
Войти
/
GeoExe
/
NamesHistogram_Task
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
NamesTask/UI/CustomColorAxis.cs
20 строк
330 B
GeoExe
uploaded files
18 окт 2025, 20:31
18 окт 2025, 20:31
c5a591e
Код
Авторство
О чём код?
using System; using OxyPlot; using OxyPlot.Axes; namespace Names.UI; public class CustomColorAxis : LinearAxis, IColorAxis { public Func<double, OxyColor> GetColorFunc { get; init; } public OxyColor GetColor(int val) { return GetColorFunc(val); } public int GetPaletteIndex(double value) { return (int)value; } }