Implement histogram command (#5518)

* finish histogram

* adjust comment

* add test for histogram

* add Date to test

* move hashable value back inside chart package
This commit is contained in:
WindSoilder
2022-05-13 19:48:47 +08:00
committed by GitHub
parent 06f40405fe
commit 852de79212
7 changed files with 640 additions and 15 deletions

View File

@ -57,6 +57,7 @@ pub enum Category {
Viewers,
Hash,
Generators,
Chart,
Custom(String),
Deprecated,
}
@ -83,6 +84,7 @@ impl std::fmt::Display for Category {
Category::Viewers => "viewers",
Category::Hash => "hash",
Category::Generators => "generators",
Category::Chart => "chart",
Category::Custom(name) => name,
Category::Deprecated => "deprecated",
};