Files
ChunilENG/Assets/Chart And Graph/Tutorials/Misc/CustomFormats/CustomFormat.cs
2025-03-10 16:42:23 +09:00

26 lines
577 B
C#

#define Graph_And_Chart_PRO
using ChartAndGraph;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CustomFormat : MonoBehaviour
{
public GraphChart chart;
// Start is called before the first frame update
void Start()
{
chart.CustomNumberFormat = (nubmer, fractionDigits) =>
{
return (int)(nubmer / 1000) + "K";
};
chart.CustomDateTimeFormat = (date) => { return date.ToString("MMM"); };
}
// Update is called once per frame
void Update()
{
}
}