Reduce the length of callout line in Pie chart Sencha touch -


Below is a code for pie chart in my Touch Touch app. The issue in front of me is that whenever a chart is displayed If the place is not enough for all the labels, then there are callout lines and labels, but then I want to reduce the length of these callout lines, they are just fine because they do not fit my screen and the labels will be cut off

Edit - Image Two charts have the same code and it is placed in the hbox

Enter image details here

  {xtype: 'polar', itemId: 'piechart', background: 'white', store: 'graphsstore', shadow: right, internal Padding: 25, // The following structure / interactions on the chart in a stock: ['to rotate'], color: ["# 115fa6", "# 94ae0a", "#A61120", "#FF8809" , "#FFD13A", "#A61187", "# 24Ad 9A", "# 7c7474", "# A66111"], // Legend Configure Legend: {S Location: 'top', // width: 100 hidden: true}, // description of actual pie series. Series: [{Type: 'Pie', Exfield: 'G1', Renderer: Function (Phantom, Config, Rendererata, Index) {var changes = {}, store = rendererData.store, curentRecord = store.getData (). Item [index]; Var text = curentRecord.data.g1; Changes.text = text; Change in turn; }, Label: {field: 'name', display: 'rotate', font: '8px'}, donut: 25, style: {miterLimit: 5, lineCap: 'miter', lineWidth: 1}}]}} < / Code>  

Any sign will be useful! Thank you.

In the chart / series / sprite / paisalis.js, modify the following two rows:

  x = centerX + Math Kos (Midangel) * (and Reho + 40); Y = center Y + monastery sin (midgeil) * (endro + 40);   

Change 40 to a small number.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -