Ali Mohammad Mehr
Ali Mohammad Mehr
I am interested to work on this. I was wondering if there is a specific recommendation on how to do this? I was thinking something along these lines: ```rust //...
You can use `chart.x_label_formatter()`, like this: ```rust let names = ["apples", "pears", "bananas"]; chart.x_label_formatter(&|x| match x { SegmentValue::CenterOf(v) => names[*v as usize].clone(), _ => "UNK".to_string(), }); ```
Could it be because you are using a very high value for margin (`.margin(100)`)? 100 pixels seems too large to me. Maybe there should be some check for when the...
One idea could be to collect the `points` iterator into a vector and then you can make multiple iterators from the collected vector, but I don't know about the performance...
There is a [MultiLineText](https://docs.rs/plotters/latest/plotters/element/struct.MultiLineText.html), which can show a multiline string. I mean you need to call `MultiLineText::push_line()` multiple times to push your lines into it one by one.
I just ran `cargo audit` and I don't see any vulnerabilities. Maybe this is fixed?
If you set the Histogram margin to a small value, e.g. `0`, it works: ```rust chart .draw_series( Histogram::vertical(&chart) .margin(0) // This is the new line that I added .style(RED.mix(0.5).filled()) .data(data_series),...
Do you need a right sidebar or a left sidebar? Where should the button to open the sidebar be if you want a left sidebar?