Histogram Bar, position bar in pixel x,y,z (3d) .


Author
Message
RIGATO IVANO
RIGATO IVANO
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 3, Visits: 5
Histogram in Bar

namespace NevronProve1
{
     public class NNevronProve1UC
     {
public double [] XValues;
public double [] X2Values;
public double [] Values;
public double [] Y2Values;
public double [] ZValues;
public double [] Z2Values;

chart.Enable3D = true;
nThinChartControl1.ImageExporter.SaveToFile (dir + fileName, new nSize (this.XDimPixel, this.YDimPixel), NResolution.ScreenResolution, new NJpegImageFormat ());
}
}
how to read the position (in pixels) x, y, z of each single bar, to pass to XYZValues methods?
Thank you very much.

Ivano Rigato


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Ivano,

Please elaborate on the question - it is not clear what you want to achieve.


Best Regards,
Nevron Support Team


RIGATO IVANO
RIGATO IVANO
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 3, Visits: 5
Good morning, by chart.bar I need to know the coordinates X , Y , Z of the bars , in pixels , to go to the properties ' of my .dll , to intercept the area of the bars with mouseover of Instant Developer . Thank you and I cordially greet Ivano Rigato


RIGATO IVANO
RIGATO IVANO
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 3, Visits: 5
Yes, from jpg map would know the positions of pixels in histogram bars . The .jpg is then used within the Instant Developer to switch to the X , Y of the bars to trigger the event OnMouseOver . Thank you and I cordially greet Ivano Rigato


Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Ivano,

The following code shows how to get an image map output from the control:

            NCartesianChart chart = (NCartesianChart)nChartControl1.Charts[0];
            NBarSeries bar = new NBarSeries();

            bar.Values.Add(10);
            bar.InteractivityStyles.Add(0, new NInteractivityStyle("Bar0"));

            bar.Values.Add(20);
            bar.InteractivityStyles.Add(0, new NInteractivityStyle("Bar1"));

            bar.Values.Add(40);
            bar.InteractivityStyles.Add(0, new NInteractivityStyle("Bar2"));

            chart.Series.Add(bar);

            NSize dimensions = new NSize(nChartControl1.Width, nChartControl1.Height);
            NHtmlMapContext context = new NHtmlMapContext("Chart", "someImage.png", 1, dimensions, NResolution.ScreenResolution, string.Empty, ClientScript.JScript, ImageMapMode.XHTML, false);

            StringBuilder stringBuilder = new StringBuilder();
            StringWriter stringWriter = new StringWriter(stringBuilder);
            using (NChartHtmlImageMapView htmlMapView = new NChartHtmlImageMapView(nChartControl1.Document, dimensions, NResolution.ScreenResolution))
            {
                htmlMapView.WriteImageMap(context, stringWriter);
            }

            stringWriter.Flush();

            string result = stringBuilder.ToString();

In the resulting image you should regard only the areas with alt or title if you want to get the bars pixel coordinates. Hope this helps - let us know if you meet any problems.


Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search