You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: regressor.rs
    path of file: ./repos/modelfox/crates/app/routes/repos/_/models/_/production_stats/index/server
    
    the code of the file until where you have to start completion: use crate::common::{
	ColumnStatsTable, DateWindowSelectForm, PredictionCountChart, PredictionCountChartEntry,
};
use modelfox_app_date_window::{DateWindow, DateWindowInterval};
use modelfox_app_ui::time::{interval_chart_title, overall_chart_title};
use modelfox_charts::{
	box_chart::{BoxChartPoint, BoxChartSeries, BoxChartValue},
	components::BoxChart,
};
use modelfox_ui as ui;
use num::ToPrimitive;
use pinwheel::prelude::*;

pub struct Regressor {
	pub date_window: DateWindow,
	pub date_window_interval: DateWindowInterval,
	pub prediction_count_chart: Vec<Predictio
    
	fn into_node(self) -> Node {
		let series = vec![
			BoxChartSeries {
				color: ui::colors::GREEN.to_owned(),
				data: vec![BoxChartPoint {
					label: self.chart_data.label.clone(),
					x: 0.0,
					y: Some(BoxChartValue {
						max: self.chart_data.quantiles.training.max.to_f64().unwrap(),
						min: self.chart_data.quantiles.training.min.to_f64().unwrap(),
						p25: self.chart_data.quantiles.training.p25.to_f64().unwrap(),
						p50: self.chart_data.quantiles.training.p50.to_f64().unwrap(),
						p75: self.chart_data.quantiles.training.p75.to_f64().unwrap(),
					}),
				}],
				title: Some("training quantiles".to_owned()),
			},
			BoxChartSeries {
				color: ui::colors::BLUE.to_owned(),
				data: vec![BoxChartPoint {
					label: self.chart_data.label,
					x: 0.0,
					y: self
						.chart_data
						.quantiles
						.production
						.map(|production| BoxChartValue {
							max: production.max.to_f64().unwrap(),
							min: production.min.to_f64().unwrap(),
							p25: production.p25.to_f64().unwrap(),
							p50: production.p50.to_f64().unwrap(),
							p75: production.p75.to_f64().unwrap(),
						}),
				}],
				title: Some("production quantiles".to_owned()),
			},
		];
		let title = overall_chart_title(
			&self.date_window,
			"Prediction Distribution Stats".to_owned(),
		);
		Dehydrate::new(
			"quantiles_overall",
			BoxChart::new().series(series).title(title),
		)
		.into_node()
	}