@@ -0,0 +1,1379 @@
+/*%0A *  The MIT License (MIT)%0A *%0A *  View the full license at:%0A *  https://github.com/hendrixjoseph/FamilyTree/blob/master/LICENSE.md%0A *%0A *  Copyright (c) 2015 Joseph Hendrix%0A *%0A *  Hosted on GitHub at https://github.com/hendrixjoseph/FamilyTree%0A *%0A */%0A %0A package edu.wright.hendrix11.c3;%0A %0A /**%0A * @author Joe Hendrix%0A */%0A@FacesRenderer(rendererType = ChartComponent.DEFAULT_RENDERER, componentFamily = ChartComponent.COMPONENT_FAMILY)%0Apublic class ChartRenderer extends Renderer%0A%7B%0A    @Override%0A    public void encodeBegin(FacesContext context, UIComponent component) throws IOException%0A    %7B%0A      ChartComponent chart = (ChartComponent) component;%0A      %0A      ResponseWriter writer = context.getResponseWriter();%0A      %0A      writer.startElement(%22div%22, null);%0A      writer.writeAttribute(%22id%22, %22chart%22, null);%0A      writer.writeAttribute(%22style%22, %22width: 100%25; height: 300px;%22, null);%0A      writer.endElement(%22div%22);%0A      %0A      writer.startElement(%22script%22, null);%0A      writer.writeAttribute(%22type%22, %22text/javascript%22, null);%0A      %0A      writer.write(%22var chart = c3.generate(%7B%22);%0A      writer.write(%22bindto:'#chart',%22);%0A      writer.write(%22data:%7B%22);%0A      writer.write(%22columns:%5B%22);%0A      writer.write(%22%5B'data1',30,200,100,400,150,250%5D,%22);%0A      writer.write(%22%5B'data2',50,20,10,40,15,25%5D%22);%0A      writer.write(%22%5D%7D%7D);%22);%0A      %0A      writer.endElement(%22script%22);%0A    %7D%0A%7D%0A

Create ChartRenderer.java