query_result.addRow( new Object[] { "Junio", 0, 0 } );
query_result.addRow( new Object[] { "Julio", 6, 3 } );
Document chartDocument =
XmlDom4JHelper.getDocFromString( "<chart><chart-type>LineChart</chart-type></chart>",
new PentahoEntityResolver() );
Node chartNode = chartDocument.selectSingleNode( "chart" );
String json = PentahoOFC4JChartHelper.generateChartJson( chartNode, query_result, false, null );
System.out.println( json );
Assert.assertTrue( json.indexOf( "\"min\":0" ) >= 0 && json.indexOf( "\"max\":6" ) >= 0 );