eclipse / swtchart

Eclipse Public License 2.0
48 stars 41 forks source link

SWT.H_SCROLL #237

Open nabil23 opened 3 years ago

nabil23 commented 3 years ago

Hi , how can i use H_SCROLL in SWT Chart ?

eselmeister commented 3 years ago

Please use a subclass of ScrollableChart. The horizontal scrollbar can be enabled via the settings:

        IChartSettings chartSettings = getChartSettings();         chartSettings.setHorizontalSliderVisible(true);         applySettings(chartSettings);

See example: org.eclipse.swtchart.extensions.examples.parts.LineSeries_2_Part

Best, Philip

Am 12.12.20 um 21:01 schrieb Nabil:

Hi , Hi , how can i use H_SCROLL in SWT Chart ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/eclipse/swtchart/issues/237, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHUT6AKLMOFBRDM4OS2E3SUPDZTANCNFSM4UYSFJJQ.

--

OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@openchrom.net » http://www.openchrom.net
nabil23 commented 3 years ago

Hi I have problems to implement swtchart with H_SCROLL , Error : getChartSettings() and applySettings is undefined all jar is included ??

eselmeister commented 3 years ago

Hi Nabil,

did you include the three following libraries in your project?

org.eclipse.swt org.eclipse.swtchart org.eclipse.swtchart.extensions

Best, Philip

Am 21.01.21 um 13:55 schrieb Nabil:

Hi I have problems to implement swtchart with H_SCROLL , Error : getChartSettings() and applySettings is undefined all jar is included ??

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eclipse/swtchart/issues/237#issuecomment-764624278, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHUTYTZYHVJRDORUJTT63S3AP4TANCNFSM4UYSFJJQ.

--

OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@openchrom.net » http://www.openchrom.net
nabil23 commented 3 years ago

Yes

eselmeister commented 3 years ago

OK, please attach the error log.

Am 22.01.21 um 00:03 schrieb Nabil:

Yes

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eclipse/swtchart/issues/237#issuecomment-764996796, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHUT3JLT6V4UXG4V7OTOLS3CXCXANCNFSM4UYSFJJQ.

--

OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@openchrom.net » http://www.openchrom.net
nabil23 commented 3 years ago

3 method undefined

swt

getChartSettings , applySettings , addSeriesData ,

eselmeister commented 3 years ago

Does your class extends from ScrollableChart? It's important that the aforementioned libraries are linked correctly. Do you use SWTChart in a plain Java or an OSGi application? Please share the class and setup for deeper inspection.

Best, Philip

Am 22.01.21 um 10:39 schrieb Nabil:

3 method undefined

swt https://user-images.githubusercontent.com/4959294/105473741-bc144d00-5c9d-11eb-9ff7-01a957809d2e.png

getChartSettings , applySettings , addSeriesData ,

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eclipse/swtchart/issues/237#issuecomment-765274993, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHUT7VJEGT7WFCC2MCLUTS3FBWNANCNFSM4UYSFJJQ.

--

OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@openchrom.net » http://www.openchrom.net
nabil23 commented 3 years ago

it's ok , last question in this case how can i insert my data (values , labels ) from table [] like simple chart ?

eselmeister commented 3 years ago

You could have a look at the charts listed in the bundle: org.eclipse.swtchart.customcharts

Alternatively, the example bundles contain demos for Line, Scatter and Barcharts:

org.eclipse.swtchart.examples org.eclipse.swtchart.extensions.examples

Best, Philip

Am 24.01.21 um 21:50 schrieb Nabil:

it's ok , last question in this case how can i insert my data (values , labels ) from table [] like simple chart ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/eclipse/swtchart/issues/237#issuecomment-766429664, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFHUT2GKHLM6T3Y3D4HMC3S3SB2DANCNFSM4UYSFJJQ.

--

OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@openchrom.net » http://www.openchrom.net
himanshu-balasamanta commented 3 years ago

@nabil23 have a look at this issue to start by... It is a good starting contribution. Just will have to replace an depricated library method with a new one