<lecho.lib.hellocharts.view. ComboLineColumnChartView
android:id="@+id/combochart"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
</lecho.lib.hellocharts.view. ComboLineColumnChartView >
ComboLineColumnChartView comboChart;
comboChart=(ComboLineColumnChartView)findViewById(R.id.combochart);
comboChart.setZoomEnabled(boolean isZoomEnabled)//设置是否支持缩放
comboChart.setOnValueTouchListener(ColumnChartOnValueSelectListener touchListener);//为图表设置值得触摸事件
comboChart.setInteractive(boolean isInteractive);//设置图表是否可以与用户互动
comboChart.setValueSelectionEnabled(boolean idValueSelectionEnabled);//设置图表数据是否选中进行显示
comboChart.setComboLineColumnChartData(ComboLineColumnChartData data);//为图表设置数据,数据类型为ComboLineColumnChartData
ComboLineColumnChartData comboLineColumnChartData=new ComboLineColumnChartData();//定义组合数据对象
comboLineColumnChartData.setLineChartData(LineChartData lineChartData);//为组合图设置折线图数据
comboLineColumnChartData.setColumnChartData(ColumnChartData columnChartData);//为组合图设置柱形图数据
comboLineColumnChartData.setValueLabelsTextColor(Color.BLACK);// 设置数据文字颜色
comboLineColumnChartData.setValueLabelTextSize(15);// 设置数据文字大小
comboLineColumnChartData.setValueLabelTypeface(Typeface.MONOSPACE);// 设置数据文字样式
comboLineColumnChartData.setAxisYLeft(axisY);// 将Y轴属性设置到左边
comboLineColumnChartData.setAxisXBottom(axisX);// 将X轴属性设置到底部
comboLineColumnChartData.setAxisYRight(axisYRight);//设置右边显示的轴
comboLineColumnChartData.setAxisXTop(axisXTop);//设置顶部显示的轴
comboChart.setComboLineColumnChartData(ComboLineColumnChartData data);//为足额和图添加数据
组合图ComboLineColumnChartData其中添加的数据为LineChartData和ColumnChartData,与LinChartView、CoulmnChartView添加的数据类型一致。