Remove label from Steema Bar Chart - xamarin.ios

How remove the label of each bar in the chart
and need to set Title for the Chart.

How remove the label of each bar in the chart
tChart1[0].Marks.Visible = false;
and need to set Title for the Chart.
tChart1.Header.Visible = true;
tChart1.Header.Text = "Chart title";

Related

How to set NPOI excel chart title style (Overlay = false)?

XSSFChart chart;
chart.SetTitle();
I know how to set the title, but can't find a way to set the title not to overlay the chart
chart.GetCTChartSpace().chart.title.overlay = new CT_Boolean() { val = 0 };

How do you set the font size of a Chart Title with Python PPTX?

I add a chart with:
doughnutchart_data.add_series('YTD COMPLETION TO PLAN', (PerformancePercent, NotPerformedPercent))
This gives me a chart title with the text, but how do I change the font size?
This:
ThisDoughnutChart.title.font.size = Pt(12)
Gives me this error:
AttributeError: 'Chart' object has no attribute 'title'
It seems that creating a chart title text_frame over writes the title applied from the add_series attribute. So I tried adding a new title. This worked for me:
ThisDoughnutChart.chart_title.text_frame.text = 'YTD COMPLETION TO PLAN'
ThisDoughnutChart.chart_title.text_frame.paragraphs[0].font.size = Pt(12)
Version 0.6.11 another example
shape = slide.shapes
title_shape = shape.title
title_shape.text_frame.paragraphs[0].font.size=Pt(10)
You can set the global font size of the chart with the following:
from pptx.util import Inches, Pt
ThisDoughnutChart.font.size = Pt(10)

How to set month Column width in AnyGantt?

Is it possible to change the width of month column in AnyGantt from AnyChart ?
This how my table look like
anychart.onDocumentReady(function() {
// create data tree on our data
var treeData = anychart.data.tree(getData(), anychart.enums.TreeFillingMethod.AS_TABLE);
// create resource gantt chart
chart = anychart.ganttResource();
// set container id for the chart
chart.container("container");
// set data for the chart
chart.data(treeData);
// set start splitter position settings
chart.splitterPosition(200);
// get chart data grid link to set column settings
var dataGrid = chart.dataGrid();
// initiate chart drawing
chart.draw();
Are you looking for zoom control?
chart.xScale().minimum(Date.UTC(2000, 1, 2));
chart.xScale().maximum(Date.UTC(2000, 3, 6));
// Set zoom to range.
chart.zoomTo("week", 2, "firstDate");
https://api.anychart.com/7.14.3/anychart.charts.Gantt#zoomTo
https://playground.anychart.com/api/7.14.3/charts/anychart.charts.Gantt.zoomTo_set_asInterval-plain
Also, there are:
https://api.anychart.com/7.14.3/anychart.charts.Gantt#fitAll
https://api.anychart.com/7.14.3/anychart.charts.Gantt#zoomIn
https://api.anychart.com/7.14.3/anychart.charts.Gantt#zoomOut

How do you add a title to a legend in Flot

I want to add a title to the legend box in Flot? For example, if my legend shows different Products, I want the title above the legend box to say "Products".
Somewhat hacky, but you can do it like this:
var $legend = $('#chart > div.legend'); // replace #chart with the id from your div
var $legendTitle = $legend.find('div').first();
$legendTitle.html('Products').height($legendTitle.height() + 15);
$legend.find('table').first().css('top', $legendTitle.position().top + 15);

Fix Bar Chart Width and Spacing between bars in JFreeChart

I have stacked bar chart in which the number of columns is dynamic, can change from 1 to n columns. I want the spacing between the charts and width of the bar to be consistent. How do I fix it. Please suggest solutions / ideas.
In a Stacked Bar chart, you can change the spacing between bars using
CategoryAxis.setLowerMargin
CategoryAxis.setMargin and
CategoryAxis.setUpperMargin
Code is below
protected JFreeChart generateGraph() {
CategoryAxis categoryAxis = new CategoryAxis("Categories");
categoryAxis.setLowerMargin(.01);
categoryAxis.setCategoryMargin(.01);
categoryAxis.setUpperMargin(.01);
categoryAxis.setCategoryLabelPositions(CategoryLabelPositions.UP_90);
ValueAxis valueAxis = new NumberAxis("Values");
StackedBarRenderer renderer = new StackedBarRenderer();
renderer.setBarPainter(new StandardBarPainter());
renderer.setDrawBarOutline(false);
renderer.setShadowVisible(false);
renderer.setBaseItemLabelsVisible(true);
renderer.setBaseItemLabelGenerator(new StandardCategoryItemLabelGenerator());
CategoryPlot plot = new CategoryPlot( _dataset,
categoryAxis,
valueAxis,
renderer);
plot.setOrientation(PlotOrientation.VERTICAL);
JFreeChart chart = new JFreeChart( "Title",
JFreeChart.DEFAULT_TITLE_FONT,
plot,
true);
//ChartFactory.getChartTheme().apply(_chart);
return chart;
}
StackedBarRenderer devotes some effort to making the "spacing between the [bars] and width of the bar to be consistent." It's not clear what you want it to do differently as the number of columns changes. The relevant geometry is determined by the parent BarRenderer in such methods as calculateBarWidth(), which can be overridden as desired. Also, verify that there is a value for each category in each series.

Resources