Complete server side:
- creation of chart;
- choose criteria;