Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 10th, 2013, 01:23 AM
sairam39 sairam39 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 6 sairam39 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 37 m 40 sec
Reputation Power: 0
Homework - Bar Chart with Movable/dragable shapes

This is Sai,

In my web application as a user I will put some points on the bar chart(which contains X and Y axis) and then when I click on button all the points should join & form a shape and when I drag and drop that particular shape to other place in that bar chart it should able to read the chart coordinates and I can able to resize that shape.

Please anyone can open up your suggestions.

Reply With Quote
  #2  
Old January 10th, 2013, 06:14 AM
NormR's Avatar
NormR NormR is offline
Contributing User
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Aug 2010
Location: Eastern Florida
Posts: 2,951 NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level)NormR User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 29 m 42 sec
Reputation Power: 345
Is this on an html page displayed in a browser? Sounds like a javascript application, not java.

Reply With Quote
  #3  
Old January 10th, 2013, 11:20 PM
sairam39 sairam39 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 6 sairam39 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 37 m 40 sec
Reputation Power: 0
I agree

Hi NormR,

I agree with you but the thing is by using java script while drag and drop it is not accurate and if the no of shapes become huge then it takes so much time to load so can you suggest me better solution.

This is my main problem:-

the back ground layer(where all the shapes are placed) I took was a table so while drag and drop the challenge is I had to consider each and every id of <td> so script takes so much time so is there any alternate for this ?????

Thanks for your valuable time

Reply With Quote
  #4  
Old February 25th, 2013, 06:55 AM
diyaots diyaots is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2011
Posts: 117 diyaots Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 1 Day 29 m 41 sec
Reputation Power: 0
Solutions is...

Hi

Please find the solutions
Code:
<script type="text/javascript" src="http://highcharts.com/js/testing.js"></script>  <div id="container" style="height: 300px; width: 400px; border: 1px solid black;"></div> var renderer = new Highcharts.Renderer(         $('#container')[0],         400,         300     ),     rect = renderer.rect(100, 100, 100, 100, 5),     clickX, clickY;  var start = function(e) {     $(document).bind({         'mousemove.rect': step,         'mouseup.rect': stop     });          clickX = e.pageX - rect.translateX;     clickY = e.pageY - rect.translateY; }  var step = function(e) { //    console.log(     rect.translate(e.pageX - clickX, e.pageY - clickY) }  var stop = function() {     $(document).unbind('.rect'); }  rect.attr({     'stroke-width': 2,     stroke: 'red',     fill: 'yellow',     zIndex: 3 }) .translate(0,0) .on('mousedown', start) .add();


Thanks
Diya

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Homework - Bar Chart with Movable/dragable shapes

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap