Dynamically Growing Bar Chart
Can a bar chart grow dynamically?
I have a report that can have hundreds of items on its bar chart. I made the chart horizontal so they would presumably all show. Crystal displays it in the amount of space I have given it and only displays the text for as many items at it thinkks it can fit comfortably
So I get a chart that looks like
Item 1 |----
|----
Item 13 |---
|---
Item 37 |---
I would like to have a chart that would display the text of all of the items and grow down the page so if I happen to have 128 items the chart will be a lot longer than it will be if I have 30 items.
Is this possible?
Thanks,
Dick
hi Dick,
Right Click the Chart,
Format Chart -> Can Grow (Option is Grayed out/Disabled)
From the above, Chart can't grow dynamically based on data in CR.
If you want all labels to appear,
Chart Expert -> Axes ->Number of Divisions -> manual :1
But when data is more, these labels appear very smaller.
Also, you can fix the size of chart based on estimated data before hand.
Regards,
Vamsee
Similar Messages
-
Dynamic bar charts in smartforms
hi all,
i have got a requirement to design a smartform with dynamic bar charts and line(scatter) charts.could any body give sample code or way to proceed.
Thanks,
Srikanth.AHi,
Refer to GFW_PROG* programs.
thanks,
sama -
Colors of bar chart dynamically
Hi,
I need help on this requirement. I have a product as a dimension and hex# color code as its attribute, and they both coming over through the datasource. I want to create a bar graph that would use the color hex from each product to display it on the graph. For example, if product A with hex #0000F1 comes up, then the bar chart for that particular product should display the color #0000F1. Any information or examples would be very helpful. Thank you in advance.
VinhHi Vinh,
Do you mean that you will have the product on the x-axis of the chart and you want to display a different colour for each product bar on the same chart, or will you have a product selector that displays a single chart only for that product against a specific dimension so that all bars are the same colour determined by the colour attribute of the product?
I am assuming your requirement is the former, in which case rather than jumping through scripting and CSS hoops, I would encourage you to reconsider the business need for this requirement in the context of Stephen Few's Rule #4 in the article Practical Rules for Using Color in Charts, an excerpt of which is shown below:
Regards,
Mustafa. -
How to add dynamic visibility between pie chart and 2 bar charts?
I have 3 section in pie chart. If i click on one section according bar chart have to appear...
Hi Riaz,
your subject-line and query seems to be different, please elaborate me the question properly so that i can explain you in clear in a single reply.
For the query you have posted bar chart based on pie selection, if i understood your question clear. Goto File menu-->samples-->user guide samples-->Chart-Insertion will show the same what you have asked.
Hope this Helps!!!
--SumanT -
Can we fix the Y axis in Bar chart ?
Hi All,
I have a bar chart in which the width of X axis is dynamic because i am using many months data.
But wen i am doing preview,my chart area is moving towards left.
Can we fix the y axis ,I mean the area of chart should not move.Only X axis can be stretched according to the number of months we have in x axis ?
Thanks in advance.
Regards
msbilearningHi msbilearning,
According to your description, you want to have your Y-axis fixed in the bar chart area and the X-axis grows from from left to Right. Is my understanding correct?
In Reporintg Services, when creating a chart, we can set the DynamicWidth of the chart which can make our chart expands dynamically with the numbers of categories. In this scenario, we also need to ennable the CustomPosition of chart, set a specific
value for top and left properties so that the Y-axis will be fixed. For detail steps, please see the two blogs below:
Charts with Dynamic Height or Width based on Categories/Data
Handling Dynamic Height and Width in an SSRS Bar Chart
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
Stacked Bar Chart with data from a Web Service
Hi,
I'm working on Dashboard Design (version 14.0.1.287) and I'm trying to create a chart linked to data from a webservice.
With a Year in input, my webservice gives an Amount per Cities and Products
Data retrieved look like this (Sheet1) :
Paris Tablets 45
Paris Laptops 12
Paris Cellulars 89
New-York Tablets 56
New-York Laptops 36
New-York Cellulars 1
Londres Tablets 150
Londres Laptops 3
Londres Cellulars 45
Then I use a Pivot Table (created manually in Excel) looking like this (Sheet2) :
Tablets Laptops Cellulars
Paris 45 12 89
New-York 56 36 1
Londres 150 3 45
The chart is a Stacked Bar Chart plugged on the previous Pivot Table
I create 3 series (one per Product), values (X) are set with Amount
Category labels (Y) are set with Cities
The goal is to have a dynamic chart (series and categories must update if a new city or a new product appears)
So my question is : how can I set up the chart directly with data retrieved from webservice on Sheet1?
Thx a lot !
Nicolas
Edited by: nicolasheurtevin on Sep 14, 2011 4:58 PMhi
First thing , bad news if you are using .Net framework 1,
just forget it, Flex 2 doesn't work well with framework 1, but 2nd,
good news, if you want to use webservices, you'll have to make an
array of objects on .Net Side and send it as objects to flex, i saw
an example on the net but i can't seem to remember where, on the
other hand,if you want to simply use, like i do, HTTPSERVICE its a
very nice way to talk with .Net and you can see my example here
http://flex1-for-dummies.blogspot.com
By the way, in your code, you have a request tag , but you
aren't requesting anything, because if you were you would have to
make like this
<mx:request>
<Artist>{yourinputtext.text}</Artist>
</mx:request>
So if you don't have an input text, you don't need a request
tag, only the operation. -
Hi, I am creating a stacked bar chart, and I am encountering 3 issues I hope you can help me with:
1) The chart has positive and negative values. I have zero based centerline checked, but I do not see 0 on the Y axis.
2) The applet width is 900 pixels. The chart can have a variable number of bars. When it has a small number of bars, they fill the entire chart. Is there a way to set the width to a fixed amount?
3) Is there a way to set a logical interval amount? Currently the numbering is not intuitive.
Thanks
p.s. We are using 11.5.3
Edited by: Richard Keegan on Jun 13, 2008 5:18 PMDepending upon your query structure, you can force a zero based centerline by setting the Y-axis ranges dynamically. I am not working in 11.5.3 currently, but ran into a problem with line charts in 12.0.2. The zero centerline flag did not work, so I dynamically generated the ranges and linked them in.
You can probably do the same with a little extra BLS coding.
Mike -
Return Links at top of Report? Legend Labels on Bar Chart Rollovers?
Hi,
I have two questions.
1. Is there a way to easily put the 'Return' links at the top of all reports? i.e. is there a template I can edit to do this to all my reports? I have hundreds of reports and changing them all by hand by putting a static text with HTML isn't really an option for me.
2. Is there a way to show the Legend value when you hover over a Bar on a Bar Chart. I'm pretty sure pie charts do this, but in my Bar Chart, hovering over the individual bars only shows the value. I would like for it to also show which legend item it is when a user hovers over.
Thanks,
KevinKevin,
I was looking into the issue. I can confirm that the scid code that's generated is dynamic.
I also looked into the return link - the code is the following (you already know this).
td class="ResultLinksCell"><a href="javascript:void(null)" onclick="return ViewBack('d:dashboard~p:9md8uku78u84kdge~r:kug9avdjlblr24fq','DrillBack','1pnm8a1lmln3ml08v6lil3d8gi');" title="Return to the previous page" name="SectionElements">Return</a</tdI checked several JS files in OracleBI\web\app\res\b_mozilla folder - tableview.js, viewhelper.js- although I found the function responsible for Return link (viewback) - I couldn't find the xml where you'd need to put that link in front of the following code - div id="idResultsTableParent"><table id="saw_146_3" class="ResultsTable" I suggest you search for the place in xml where it's generating table view and put the return link on top of the table.
Edited by: wildmight on Apr 14, 2009 8:04 AM -
Generating JFreeChart Bar chart in jsp
Hi Everyone,
I have never worked with charts earlier. I created one demo for generating a bar chart using a java class. I am using awt classes here. Chart was rendered successfully on running this java class. My problem is i want to integrate this class with a JSP, by involving servlets. I tried to do it many a times now but yet not successfull.
My requirement is, on the hit of 'generate chart' in one jsp, bar chart should be rendered.
Can somebody plz help???
Thanks in advanceHas no update on the problem mentioned. However, you can try elegantj charts. It creates customized, dynamic charts in few minutes.
Link: www.elegantjcharts.com -
Mapping between Icon component and Bar chart component
Hi experts,
I have added one world map, on which i have added 3 icon component in different area of world. At present i have added 3 different bar chart for each icon component. Now i want to take only one bar chart which sohws data according my selection of icon component.
can anyone help on this, plz?
Thanks in Advance,
RishitHi
Try the following:
Icon1 Source data = Unchecked 0, Checked 1
Icon1 Destination Cell $D$2
Icon2 Source data = Unchecked 0, Checked 2
Icon2 Destination Cell $D$3
Icon3 Source data = Unchecked 0, Checked 3
Icon3 Destination Cell $D$4
Have all the icons set to be unselected.
In cell $D$5 have the formula =max($D$2:$D$4). This cell now controls the Dynamic Visibility of the Bar Charts.
Barchart1, Dynamic Visibility Status = $D$5, Key = 1
Barchart2, Dynamic Visibility Status = $D$5, Key = 2
Barchart3, Dynamic Visibility Status = $D$5, Key = 3
I think that's what you are asking! Please keep in mind that you have to click the icons on and off to show/hide the charts.
Regards
Charles -
using javafx 1.2
testing javafx.scene.charts
Looks like there is a memory leak
Here is a small bar chart app.
The bars are animated.
They shrink and grow when clicked on.
Keep clicking and the app eventually crashes with the following error
Unexpected exception caught in MasterTimer.process():
java.lang.OutOfMemoryError: Java heap space
Just moving the mouse cursor and hovering over different bars seems to use more and more memory
import javafx.scene.chart.*;
import javafx.scene.chart.BarChart.*;
import javafx.scene.chart.part.*;
import javafx.stage.*;
import javafx.scene.*;
import javafx.animation.*;
var min=0;
var max=10;
var bcData: BarChart.Data[];
var cats:String[];
for (i in [min..max]){
insert BarChart.Data {value:i;action : function(){growBar(i);};} into bcData;
insert "cat{i}" into cats;
function growBar(i:Integer){
Timeline {
keyFrames : [
at (0s) {bcData.value =>0},
at (1s) {bcData[i].value => i}
}.play();
def barchart:BarChart = BarChart{
title : "leaky bar chart"
valueAxis :NumberAxis{
label:"values"
tickUnit :1
lowerBound:min
upperBound:max
categoryAxis :CategoryAxis{
label:"categories"
categories :cats
data: [Series{name:"series1";data:bcData}];
Stage {
title:"Bar chart"
scene : Scene {
content:[barchart]Same problem here. I have a SystemInformationSimulator that generates random data. Trying to plot this using a LineChart overloads the heap after adding around 40 points.
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.chart.LineChart;
import javafx.scene.chart.LineChart.*;
import javafx.scene.text.Font;
import javafx.scene.chart.part.NumberAxis;
var numberOfCores = 4;
var system = SystemInformationSimulator{
hostName: "Schildmeer"
numberOfCores: numberOfCores
var series: Series[];
for(i in [0..numberOfCores-1]){
insert Series{ } into series;
var x = 0;
var lowerX = 0;
var upperX = 20;
Timeline {
repeatCount: Timeline.INDEFINITE
keyFrames : [
KeyFrame {
time : 5s
canSkip : true
action: function() {
system.update();
for(i in [0..numberOfCores-1]){
var point = Data{
xValue: x
yValue: system.cpuLoad[i]
insert point into series.data;
if(x >= 20){
delete series[i].data[0];
lowerX++;
upperX++;
println("inserterd point into series[{i}] with x:{x-1} and y:{point.yValue} series[{i}] has size of {sizeof series[i].data}");
x++;
if(x >= 20){
lowerX++;
upperX++;
}.playFromStart();
Stage {
title : "Test native graphs"
scene: Scene {
width: 600
height: 600
content: [
LineChart{
xAxis: NumberAxis{
tickUnit: 2
lowerBound: bind lowerX
upperBound: bind upperX
yAxis: NumberAxis{
tickUnit: 0.1
lowerBound: 0
upperBound: 1
title: "This is a LineChart"
titleFont: Font{
size: 24
data: bind series -
Hello,
In a page bean, a code is written to produce a bar chart image. The chart image is successfully created in app server's local directory c:\mycharts
What URL should be given to view this image from the browser. Since this image is created dynamically I can't have it placed in a resources folder during design time.Hi,
The dynamically created image needs to be in a folder under the domain. An absolute path can be supplied to access the image from your page. For example, an absolute path to an image file created under a folder called images which resides in the domain would look like:
http://www.mydomain.com/images/myImage.gif
I hope this helps
Cheers
Giri -
Maximum Rows for series in Charts (Cluster Bar Charts)
Question
Is there a way to dynamically define the "Maximum Rows" value for all the series in a cluster bar chart? I tried putting "&item_name." into the "Maximum Rows" field for a series, but get an Application Builder error indicating that the value should be numeric. I would like to set the "Maximum Rows" for all the series in a chart "on the fly".
Details
I have one horizontal cluster bar chart with 4 series on my page that has a variable number of rows i.e. the number of bar clusters that I want plotted varies based on the user's criteria. For one set of data there may be 10 clusters. If the user changes the criteria, the chart could then have 20 clusters. I have the "Maximum Rows" field for all 4 series in the chart set to 31 rows.
The Problem
The chart with only 10 clusters is two thirds whitespace. The 10 clusters fills up the bottom third of the chart. The top two thirds of the chart is blank. The chart with 20 clusters fills up the chart with no whitespace. The chart with 40 clusters gets the top 10 clusters cut off and only displays the bottom 31 clusters.
Any Suggestions
If you have any suggestions how I can accomplish this, please post them. Currently I am not interested in going outside of HTML DB. I may end up doing that though to get a more dynamic charting tool.
Thanks,
MikeNote 367711.1 deals with this issue. The contents of the note are the below:
At this time, this is not possible to dynamically set these charting attributes, however, an internal enhancement request has been created requesting that this functionality be incorporated into the product. The current plan is to incorporate this feature into 3.0 version of the product, however, this is just the current plan and can change depending on the complexity of the implementation. -
Dynamically set flash chart height?
Hi,
I have a flash chart that includes a selector that alters the query for the chart. Depending on what the user selects, the chart shows a different number of rows (this happens to be a stacked horizontal bar chart, but this could apply to any chart type). I would like to be able to dynamically set the chart height based on the number of rows the query returns. If I set it too small and the user makes a choice that returns a larger number of rows, the chart bars are compressed to the point where the labels are unreadable or omitted altogether. Conversely, if I set the height to a larger value and the user makes a selection that results in a small number of rows, the chart is overly extended and hard to read.
I am able to calculate what I'd like the chart height to be using a page item and a before header process. But I can't figure out how to pass this value to AnyChart. I tried using an item substitution (e.g., &P7_CHART_HEIGHT.) as the value for the chart height on the Chart Attributes/Chart Settings page, but this attribute requires a non-zero numeric value. I tried to figure out if I could alter the chart XML, but could not figure out how to do it and I'm not sure item substitutions would be passed in the XML anyway.
Is there a way to dynamically set the height attribute of a chart at page load time?
Thanks,
MikeHi Mike,
You can update the Region Source of your chart, replacing the substitution strings *#HEIGHT#* with the reference to your page item *&P7_CHART_HEIGHT.*. So your chart region source should then look something like the following(note that I've trimmed some lines for display purposes), and when the chart is run it will pick up your setting for the height, based upon the value returned from your Before Header process:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="#HOST_PROTOCOL#://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="#WIDTH#"
height="&P7_CHART_HEIGHT."
id="#CHART_NAME#"
align="top">
<param name="movie" value="#IMAGE_PREFIX#flashchart/anychart_5/swf/...............................">
<param name="quality" value="high">
<param name="allowScriptAccess" value="sameDomain">
<param name="allowNetworking" value="all">
<param name="scale" value="noscale">
<param name="wmode" value="transparent">
<param name="FlashVars" value="initText=#FLASH_INIT#&xmlLoadingText=............................................">
<embed src="#IMAGE_PREFIX#flashchart/anychart_5/.......................................
quality="high"
width="#WIDTH#"
height="&P7_CHART_HEIGHT."
name="#CHART_NAME#"
scale="noscale"
align=""
allowScriptAccess="sameDomain"
allowNetworking="all"
type="application/x-shockwave-flash"
pluginspage="#HOST_PROTOCOL#://www.macromedia.com/go/getflashplayer"
wmode="transparent"
FlashVars="initText=#FLASH_INIT#&xmlLoadingText=#FLASH_................................................">
</embed>
</object>
#CHART_REFRESH#
{code}
I hope this helps.
Regards,
Hilary -
Percentage Bar chart with more than 1 measure
Hi everbody,
i have a new big problem.
point of departure: i want to create a bar chart (stacked vertical) with more than 1 measure.
Vertical axis should be from 0% to 100%. Horizontal there are diverse, let's say departments.
Now it becomes tricky: Every department once more has its own under-departments.
So far so good. The measure is the number of employees per under-department.
So: in one bar you can see the complete number of employees per department AND the number of employees of one under-department in each block of this bar.
-> That's the idea!
Now: The whole chart should be presented in percentage.
-> Therefore i need to divide the particular block by the complete number of employees per bar and multiply it by 100.
My question is: How can i create a kind of dynamic variable, which adatps itself to the particular department
Edited by: 941338 on 27.06.2012 04:53Looks like you need a dynamic variable to hold the value to calculate futher, for that using prompt(this should follow your criteria to get value) with prsentation variable, use the presentation variable in the report to calculate.
If it is helpful, please mark as correct or helpful
Maybe you are looking for
-
Trouble with internet connection when using extreme to join wireless network
I have an airport extreme that I want to use as an ethernet hub. I have successfully connected it to my wireless modem, and I have a solid green light; however, when I connected the ethernet to my tv/computer/anything there is no internet connection
-
2 ToolTips in an applet ?
I have an applet that draws a graph, I would like to be able to have 2 tooltips that show on 2 different plotted lines. Am I thinking wrongly by trying to implement this with ToolTips? Should I be thinking in a different way of implementing this ?? a
-
Dreamweaver CS4 compatible with Windows 7 and 8?
I still work with Dreamweaver CS4 (student version) which is until now still good enough for me. On my desktop I still have XP and on my Laptop Vista. But due to HD filming and probably Office 2013 I need a new desktop and also need to upgrade my Lap
-
Applying Firefox address list to Curve 9320
I have recently acquired a Curve 9320 and wish to load my Firefox address book from my home computer. I have not been able to find a reference of how to do this. Is it necessary to make a transitional file or can the Firefox file be used. Any help
-
How to I setup a "repeat" event for work days only. Monday - Friday and NOT include weekend days?