473,403 Members | 2,338 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

How to display label on the right side outside of chart using JavaFreechart?

2
Hi All,
In my application, i have created the bar chart using the JFreechart and also added the Value marker for y= 100 and its working fine.From the below code i get the label on right side (but inside the chart). But i need to add the text against the y = 100 on right side (outside the chart).

Expand|Select|Wrap|Line Numbers
  1.   Marker target = new ValueMarker(100);
  2.   target.setPaint(Color.BLACK);
  3.   target.setLabel("Test");
  4.   target.setLabelAnchor(RectangleAnchor.RIGHT);
  5.   target.setLabelTextAnchor(TextAnchor.BASELINE_RIGHT);
  6.   target.setLabelFont(new Font("Arial", Font.PLAIN, 16));
  7.   p.addRangeMarker(target); 
  8.  
  9.  

Please share the suggestions and Thanks in Advance.
Feb 5 '11 #1
0 1381

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: whatduck | last post by:
I have two PCs that consistantly cut off about one inch of the right side of the chart. I also see the missing section in print preview (but just on the two machines). The same charts print fine...
2
by: Don Wash | last post by:
Hi All! I've been searching everywhere for a simple sample of producing a bar graph using CrystalReport by specifying SQL Query, and I've found none of it! I find so many complex samples with so...
0
by: David Caissie | last post by:
I am trying to automate a Vb.net chart using the excel COM object. The problem occurs when trying to run the code in different systems. It is working fine under one of my computers but once i move...
9
by: raghav4web | last post by:
I use a select box with a fix width (via stylesheet). So some of the entries are cut on the right side if they're too long. Is there a way to display them complete like a tool tip on a mouseover? ...
1
by: mzkpk | last post by:
Hi.. i m generating PDF file by using FPDF class of php it is successfully generated but i want to set image on left side and text on right side but when i display the image the text go to the bottom...
2
by: prisesh26 | last post by:
hi, Iam using the plug in for calendar. when we click the text box or go through tab we will get the calendar popup. but as iam having the text box in the right end of the screen. the saturday...
1
by: Arhan Demirali | last post by:
Hello Everyone, I am trying to create an Organizational Chart using C# to display on the WEB. (web application) I have a TABLE of data containing the information for who is the supervisor of...
2
by: aashishn86 | last post by:
hii...i am creating a chart using html and asp the code for it is : <%@ LANGUAGE="VBSCRIPT" %> <% Option Explicit %> <% Dim data1Array(3) data1Array(0) = 5
1
by: aashishn86 | last post by:
hii...i am creating a chart using html and asp the code for it is : <%@ LANGUAGE="VBSCRIPT" %> <% Option Explicit %> <% Dim data1Array(3) data1Array(0) = 5
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.