title: How to use achartEngine?
body: <p>I'm trying to make some graphics in my application with the <code>AchartEngine API</code> but it doesn't works.</p>
  
  <p>Can anyone explain me how to have a view with a <code>graphic</code> instead of <code>Intent</code>?</p>
  
  <p>Cause in the demo code it's only by <code>Intent</code>, not by view. </p>
  
  <p>edit: 
  I tried to test the 2 options at the same time:
  I have a linearLayout with a button in it:</p>
  
  <pre><code>&lt;LinearLayout android:id="@+id/list_infos_layout_stat" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" &gt;
  
  &lt;Button 
      android:id="@+id/list_infos_bouton_stats"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:text="statistiques"
  /&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I hit the button, a new activity is made by the <code>ChartFactory.getLineChartIntent(..)</code> method and it works great.</p>
  
  <p>And in the same LinearLayout, I put a view returned by <code>ChartFactory.getLineChartView</code> method, its ok I have the graphic at the right of the button.
  But when I remove the button I have nothing...</p>
  
  <pre><code>View graphique = new ReponsesChart().getView(contexte);
          if (graphique !=null){
              LinearLayout layout = (LinearLayout)convertView.findViewById(R.id.list_infos_layout_stat);
              layout.addView(graphique, new LayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT));
          } else {
              Log.d("Infos", "GRAPHIQUE NULL");
          }
  </code></pre>
  
  <p>edit 2: Fixed by replacing Fill Parent properties when I add the view to the layout by the width of the screen</p>