I want to create a chat and graph on the basis of give input in Java.i don’t have an idea about to how to implement chart and graph in Java. please give me some idea about the implementation.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to implement graph yourself, first get your x, y points in two arrays
xarray[],yarray[]. Normally to implement a curved graph, you need points between the data points you already have. Use interpolation for this http://www.webcabcomponents.com has free version of interpolation program. You just give thexarray,yarray,any_xand you get the interpolated y point for any x. You can plot look-continuous curves by code likeYou may have to set Scale if necessary and multiply the
firstXetc by scale.For Interpolation these bit of code will get you started.
returnedArrayhas two elements. FirstreturnedArray[0]is the required y. The other is error estimate (neglect for now).The above method
interpolateExtrapolatePolynomial(getQArray(),getEArray(),x)is for polymial type curves. If you data points do follow any other pattern class, Interpolation has other methods. Or you can implement yourself using numerical methods.Happy coding!