Pie chart problem with label!
Hello,
I found this example of pie chart, I tried to use several pie charts but the label square move in some chart. It shows the square moved down when it uses the vi.
I attached the example with 4 pie charts and sometimes it show the 4 sqaures and sometimes down one. Any way to fit it?.
I would like to see some example with 3d pie chart. Do you know any example?.
Thanks in advance!.
Fred
Solved!
Go to Solution.
Attachments:
Pie Charts.vi 25 KB
PieCreateChart.vi 13 KB
Sorry guys!. i got it.
Changing the first time call to comparison of For Loop = 0, so always start with the value fixed to draw the square.
Thanks.
Similar Messages
-
Problem with label on barseries ?
Hi,
I have faced a problem with label truncation for the clustered and stacked bar chart.
if the size of the bar is too small and labelposition is inside label truncates , similarly when bar is too long and occupy the graph width the label outside truncates.
Is there any way to resolve this problem.
Thanks in advancefor b)
JButton nextButton = new JButton(String.valueOf(i));
nextButton.setForeground(Color.red);//
nextButton.addActionListener(this);
days.add(nextButton);
OR
Font titlefont = new Font("SansSerif",Font.BOLD,20); //Globle
JPanel middle = new JPanel();
monthlabel = new JLabel();
monthlabel.setFont(titlefont);
middle.add(monthlabel);
I'm new it java but i think this should help -
Stacked 100% bar chart - Problem with datatips for zero value data points
I have a stacked 100% bar chart that shows datatips in Flex 4. However, I don't want it to show datatips for
data points with zero values. Flex 4 shows the datatip for a zero value data point on the left side of a bar if the data point is not the first in the series.
Here's the code that illustrates this problem. Of particular concern is the July bar. Because of the zero value data point problem, it's not possible to see the datatip for "aaa".
Any ideas on how we can hide/remove the datatips for zero value data points ? Thanks.
<?xml version="1.0"?>
<s:Application
xmlns:fx="
http://ns.adobe.com/mxml/2009"xmlns:mx="
library://ns.adobe.com/flex/mx"xmlns:s="
library://ns.adobe.com/flex/spark"creationComplete="initApp()"
height="
1050" width="600">
<s:layout>
<s:VerticalLayout/>
</s:layout>
<fx:Script><![CDATA[
import mx.collections.ArrayCollection;[
Bindable]
private var yearlyData:ArrayCollection = new ArrayCollection([{month:
"Aug", a:1, b:10, c:1, d:10, e:0},{month:
"July", a:1, b:10, c:10, d:10, e:0},{month:
"June", a:10, b:10, c:10, d:10, e:0},{month:
"May", a:10, b:10, c:10, d:0, e:10},{month:
"April", a:10, b:10, c:0, d:10, e:10},{month:
"March", a:10, b:0, c:10, d:10, e:10},{month:
"February", a:0, b:10, c:10, d:10, e:10},{month:
"January", a:10, b:10, c:10, d:10, e:10}]);
private function initApp():void {}
]]>
</fx:Script>
<s:Panel title="Stacked Bar Chart - Problems with DataTips for Zero Value Items" id="panel1">
<s:layout>
<s:HorizontalLayout/>
</s:layout>
<mx:BarChart id="myChart" type="stacked"dataProvider="
{yearlyData}" showDataTips="true">
<mx:verticalAxis>
<mx:CategoryAxis categoryField="month"/>
</mx:verticalAxis>
<mx:series>
<mx:BarSeries
xField="a"displayName="
aaa"/>
<mx:BarSeries
xField="b"displayName="
bbb"/>
<mx:BarSeries
xField="c"displayName="
ccc"/>
<mx:BarSeries
xField="d"displayName="
ddd"/>
<mx:BarSeries
xField="e"displayName="
eee"/>
</mx:series>
</mx:BarChart>
<mx:Legend dataProvider="{myChart}"/>
</s:Panel>
<s:RichText width="700">
<s:br></s:br>
<s:p fontWeight="bold">The problem:</s:p>
<s:p>Datatips for zero value data points appear on left side of bar (if data point is not the first point in series).</s:p>
<s:br></s:br>
<s:p fontWeight="bold">For example:</s:p>
<s:p>1) For "June", eee = 0, mouse over the left side of the bar to see a datatip for "eee". Not good.</s:p>
<s:br></s:br>
<s:p>2) For "July", eee = 0 and aaa = 1, can't see the datatip for "aaa", instead "eee" shows. Real bad.</s:p>
<s:br></s:br>
<s:p>3) For "Feb", aaa = 0, datatip for "aaa" (first point) does not show. This is good.</s:p>
<s:br></s:br>
<s:p>4) For "Mar", bbb = 0, datatip for "bbb" shows on the left side of the bar. Not good.</s:p>
<s:br></s:br>
<s:p fontWeight="bold">Challenge:</s:p>
<s:p>How can we hide/remove datatips for zero value data points?</s:p>
<s:br></s:br>
</s:RichText></s:Application>FYI.
Still have the issue after upgrading to the latest Flex Builder 4.0.1 with SDK 4.1.0 build 16076.
Posted this as a bug in the Adobe Flex Bug and Issue Management system. JIRA
http://bugs.adobe.com/jira/browse/FLEXDMV-2478
Which is a clone of a similar issue with Flex 3 ...
http://bugs.adobe.com/jira/browse/FLEXDMV-1984 -
Bar and Pie chart display with values
Hi All...
I want implement the my swing application Bar and Pie chart functionality with vales, If both are disply same veues.
Thanx to Advance
Arjunwww.jfree.org
-
To print an Pie Chart image with more than 1 slice is not working
Hi friends,
I'm using a version 12.0.4 and when I try to generate an Pie Chart image with more than 1 slice using the function saveImage() it's not working. The image is only generate when its return is just 1 value (1 peace of pie).
Anybody help me?
Regards!It's not unique for your setup, but it also happens in 12.0.11, so it's a bug. Looks like it is throwing a null pointer for some bizzare reason when generating the GIF output by the ImageStorageServlet (per the NW logs).
Your best bet would be to log a ticket so it can be patched.
12.1.7 seems to work fine.
Edited by: Michael Appleby on Nov 23, 2010 2:39 PM -
Chart - problem with realize one of the function under CR XI
Post Author: mrowa
CA Forum: Charts and Graphs
Hello,
I have
problem with realize one of the function under CR XI. I would be persuade if
any of us would like to help me.
1)
1) From
database (basically from one table), I take data to make report. Each of record
have appropriate fields:
dteData
intYear
intMonth
intDate
2)
2) I
want to realized comparison data from two or more periods of time on one chart
and in one table. For easily explanation I will describe problem on two
periods.For instance, user want to display and compare
on chart date (type monthly -sum data of each month) from 2007.02 u2013 2007.05
with date from 2006.03 u2013 2006.06. So we compare month 2007.02 with 2006.03;
2007.03 with 2006.04; 2007.04 with 2006.05; 2007.05 with 2006.06
On char I would like to display bars with comparison
of months.
Problem is that I donu2019t know how to write
something similar. I can use one period without any problems, but two and mores
I canu2019t realized.
Detail description:
I passed
two parameters two report:
{?from}, {?to} u2013for first period
{?offset}, it means {?from}+{?offset},
{?to}+{?offset} - for second period
On axis Y I have Sum(intDate);On
X (year + month). But on each value x( example 20007.02) I need to have
two values (bars). Value for standard period and offset.
For example for x=2007.02, I need
two bars one equal 2007.02 and second with offset u2013 2006.03
Movement to next value (bar) is
persuade by fields {data.rok}&{data.month} first or second period. This is
combination of two elements year&month defined under Formula. Problem
persist in that both period has different year.month and here problem starts once
again. I donu2019t know how to solve it. I have found out one solution but it
limits user only for two periods (I want to compare more).
My idea for compare only two
periods:
I make one query in CR for one
period and second query for second period.
Firs query:
"SELECT
year ,
month
Second query
"SELECT
year + FLOOR({month + offset} % 13),
{month + offset} % 13
Then in CR I connect two periods and
make u201Ctableu201D (results of queries) with JOIN on fields year and month.
This solution is not functional,
because I need to make reports for days and hours as well. In this solution I
canu2019t use (%31), because not all months has 31 days.
I use CR in WEB app made in Visual
Studio 2005. Maybe from aspx we can manipulate with date to get exact solution,
and solve problem with SELECT.
Hope my description clearly
describe problem and someone will be able to help me. I would be thankful.I have had similar problem before.
Because I had too many data, the legend would not display all the data. Also the chart would not display all the data. But I was able to find a work around.
In your case, Right click on the Legend text and click on Format Legend Entry.
Change the font of the legend to 4 (which is the minimum). This may work.
If you are also having problem with data labels, you could change the font size of the data labels.
Hope this helps.
Thank you. -
Hello,
I use Crystal Reports for Eclipse 1.0, I know their is a new version, an I have a problem with the Pie Chart. Under the chart stands a "title" with the information of the data field, e.g. Count({........}).
Did anyone have an idee how to disable this, I didn't found anything in the properties.
If you want to see an example I can send it via mail.
Thanks for your help
Alex
Edited by: Alexander Lukesch on Apr 29, 2009 1:33 PM
Edited by: Alexander Lukesch on Apr 29, 2009 1:35 PMPlease re-post if this is still an issue to the Java Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly
-
Pie - Chart Web Part - Label Alignment empty
Hello all,
I create lots of Dashboards to display KPIs for my company and I always struggle with the pie chart labels as the always end up overlapping unless I rotate them but that just looks naff.
My frustration and question is that the "Label Alignment" option is empty and therefore does not allow me to select "Open" which is the feature I seek.
Does anyone have an idea why this might be and if there is a work around?
Thank you in advance
JessicaYou would potentially run into this with lookup fields as well, I believe. I would make a column that is single line of text for the purpose of the chart. That would make sure the NUM;# is removed.
Andy Wessendorf SharePoint Developer II | Rackspace [email protected] -
Hello all. I am trying to create a pie chart that displays 3 categories from a task list: Complete, In Progress, and Not Started. Currently my chart looks like a 5 part pie chart, 3 seperate parts for In Progress, 1 part for Complete, and 1 part for Not
Started (I have 5 tasks in this example)
This is close to what I want, but I want all the In Progress to be merged into one category, all the Complete and Not Started to each be their own category (If there were more than one, in this exaple there aren't) So there are only 3 parts, proportional
to what is in my list. Currently my X axis is based on a calculated column from a task list saying what the status is (Complete, In Progress, Not Started)
And my Y Axis is based on one of the only 4 choices I have, ID (choices are ID, Modified by, Created By, and Priority.)
Can anyone tell me how to fix my graph?if you want to automate the process, you can write a event receiver on the task list which will update the StatusLookup column based on the percentage complete or any other column based on requirement. You can remove/hide the status lookup column. Here is
the link below which explains how to create event receiver on task list
http://www.binarywave.com/blogs/eshupps/Lists/Posts/Post.aspx?ID=117.
Raghavendra Shanbhag | Blog: www.SharePointColumn.com
Please click "Propose As Answer " if a post solves your problem or "Vote As Helpful" if a post has been useful to you.
Disclaimer: This posting is provided "AS IS" with no warranties. -
Hi Experts,
When I try to execute a query through Web Application Designer with a form of Pie chart, its not working properly. All I'm getting in web dash board is just a circle with blue color. Its similar to the first picture in the below image.
http://img296.imageshack.us/img296/1450/question3hn0.jpg
But I'm getting correct output with Column chart.
Could someone please help me to resolve this problem?
Bregards,
BalaHello Krish,
Please try to check the below:
1.Did you check the result of the query in graphical view via Query Designer or analyser.
Is the graphical view with chart type as pie , showing different colours through Query Designer or Analyser?? if you finding similar kind of image then swap axes and try..
2.Did you try to assign different colours for different categories.
3.Swap display axes
In th left hand side of the WAD screen.
you will find a properties window. in that there will be 2 tabs.generic and web item.
Click on Webitem.in this go to specific.
and check the check box ...swap display axesand now execute.
Hope this helps you..
Message was edited by:
sanju d -
I am trying to create a bar of pie chart in Excel 2003. I am able to insert my data and create the chart, but I need to set the "SplitValue" to 6. I was able to find the property for doing this but I get an error when I run the vi (see attached). Any thoughts?
Solved!
Go to Solution.
Attachments:
ActiveX Error.PNG 45 KBI think your problem is that you don't have "Index" wired for the ChartGroups property. Thus, it may be returning a collection of chart groups, but you are typecasting it to a single chart group.
-
Hello,
Ive got 3 problems with stack plots:
1. In the legend, the first value of table is the last one, why?
2. Always when i remove one value(in this case i turn off button), the last chart is remove
3. When I turn off the second button(rest is on), the plot name in legend is doubled.
Does anyone have an idea what i can do with this?
thanks for any answers.
Solved!
Go to Solution.
Attachments:
Desktop.zip 24 KBWell, you simply need to code it differently.
Try this:
LabVIEW Champion . Do more with less code and in less time .
Attachments:
top-levelMOD2.vi 13 KB -
Bubble chart - problem with overlaying bubble
Hi all,
I have problem with bubble chart. Two bubbles are overlaying, that wouldn't be a problem, but one of this two bubbles is bigger and other is smaller. This smaller is beneath bigger. Why smaller is not on top of bigger? How to solve this?
ThanksHi Andrew,
We have experienced similar problems, however they usually were with much larger models (10+ tabs, 10+ components in each).
If you're using a lot of data or more intensive processes/components, that may have caused the problem to express earlier, though.
The best recommendation is to keep Tabset use shallow: don't embed containers within containers, not too many components in a tab, not too many tabs. -
Gantt Chart: Problems with more than 39 elements
Hi all,
I have a problem with Gantt Project Chart.
Please have a look at http://tryapexnow.com/apex/f?p=2141:2 (credentials: demo/demo)
If you limit to 39 rows this works fine, but with 40 rows or more the timeline is not in line with the datagrid.
Strange thing is that as soon as you collapse all tasks the timeline is correct.
Uncollapsing brings back wrong display.
Has anybody seen this behaviour before and can help me out on that?
Thanks for help,
Moritz
Edited by: commi235 on 31.05.2011 13:23Hello Moritz,
the "Maximum Rows"-option is as default set to 40.
if you created the chart by "Create Region => Chart => Flash Chart => ..." you can change this value in tab "Chart Series", below the "Build Query"-button.
But I don't know how to change the maximum number of rows, when the chart is created via
"var chart = new AnyChart(''#IMAGE_PREFIX#flashchart/anygantt_4/swf/AnyGantt.swf''); " in a HTML-region.
I'm very interested in finding a solution.
Kirsten -
On Pie chart rotation - the labels disappear
I am using followig to rotate a pie chart:
<mx:Rotate id="rotate" angleFrom="{angle-90}"
angleTo="{angle}"
target="{myChart}"/>
private function rotateImage():void {
rotate.end();
angle += 90;
rotate.play();
<mx:PieChart id="myChart" dragEnabled="true"
dragComplete="rotateImage()">
So, when a user tries to drag the pie chart, the chart
rotates. The
chart rotates fine but the labels disappear? why would this
happen and
any solution to this.
Also, I would like to use some other event for rotation
instead of
dragComplet. I would like to do it when user clicks left
mouse
button+moves the mouse (both on the outside of the chart)
Any suggetions?
Thanks in advance.Are your fonts embedded? Rotating non-embedded fonts makes
text disappear during rotation.
Maybe you are looking for
-
Configure Synchronization Connections An error has occurred while accessing the SQL Server database
Hi, i am getting following error message Central Administration --> Synchronization Connections An error has occurred while accessing the SQL Server database or the SharePoint Server Search service. If this is the first time you have seen this messag
-
Macbook Pro does not turn on, service battery
Heres the backstory. One day, my mac simply wouldnt turn on. No video, no chime. Just one indicator light turns on, then turns off a few seconds later. then turns back on. After that happened, I brought my laptop to school the next day and plugged my
-
The burn tool is acting as a brush and leaving a series of circles any idea how to return it to normal please ?
-
How can I sync iPod 3rd generation to iPad air
How can I sync my iPod 3rd generation to my ipad air? I have a cable to connect the two devices but, unlike my PC (which I am hoping to put away in the loft forever!) there does not seem to be a sync option in iTunes
-
[915 Series] 915P Combo2 v3.2 sound drivers for Windows 7
Hey i'm having a problem trying to find a driver for my sound card there are no windows 7 updates for the 915p combo2 v3.2 and i was wondering if i could get some help getting one.