Show ToolTips and line graph point cloud where data extracted by SQL


I'm looking to create a scatter chart to display the results of a SQL query. The graphic appears as

anychart.png

I want to have the points to is joined by a line and - bubbles that appear when a single point are selected. My existing custom XML is displayed at the bottom of this post. I tried different formats between the < / tooltip_settings > tags, but nothing appears. Similarly, I tried different line format settings. Interestingly, if the string #DATA # is replaced with a block as...

< data >

< name of series = 'Dirty' type = 'Line' >

< y = '1.172' point x = "1063512000" / >

< y = '1.916' point x = "1095048000" / >

< point y = "5.57" x = "1126584000" / >

< point y = "15.0" x = "1158120000" / >

< point y = "144" x = "1189656000" / >

< / series >

< / data >

... then a line and bubbles appear. It seems that all that is in the #DATA block # is not enough to create a line, and ToolTips. The data is retrieved by a query that returns the 4 columns LINK, TAG, X_VALUE, Y_VALUE

Is there a way in which something can be configured for line and tool tips to appear?

Existing custom XML

<? XML version = "1.0" encoding = "UTF-8"? >

< anychart >

< Parameters >

< local >

< date_time_format >

< format > %u < / size >

< / date_time_format >

< / locale >

< / Parameter >

< graphics >

< graphic plot_type 'Scatter' = >

< data_plot_settings >

< line_series >

< tooltip_settings enabled = "True" >

< / tooltip_settings >

< / line_series >

< / data_plot_settings >

< chart_settings >

< title >

Scatter line < text > < / text >

< /title >

< axes >

< y_axis >

< title >

< text > County < / text >

< /title >

< scale type = "Linear" / >

<>labels

< format > {value %} {numDecimals:0} < / size >

< / Label >

< / y_axis >

< x_axis >

< scale type = 'DateTime' major_interval = '1' minor_interval = '3' major_interval_unit = 'Year' minor_interval_unit = 'Months' minimum_offset = '0' maximum_offset = '0' / >

<>labels

< format > {value %} {dateTimeFormat: % YYYY} < / size >

< / Label >

< title enabled = "true" >

< text > Date < / text >

< /title >

< / x_axis >

< / axis >

< / chart_settings >

#DATA #

< / chart >

< / charts >

< / anychart >

This is because the apex generates the series not as a type of line, but as a type of marker:





...

You will need to provide the data yourself, in the format you want, that is to say a series of line type. You can't set it up.

Tags: Database

Similar Questions

  • Point cloud with missing data and 3 sets of data

    Hello

    I'm doing a scatter diagram that has 3 sets of data in it (i.e. 3 plots on the same graph), except that 2 of my sets of data have a missing value while my third set has all the values. I end up getting 2 lines that are disconnected. I can't just remove the line containing the missing data for the 2 sets of data because since my category axis is time, my data points get shifted and no longer appear at the right time. This is the chart that I have.

    Thank you.

    Hi Gabrielle,.

    If there is a diagram of dispersion, the x axis is a value axis. If you have auto selected for the min and max values on this axis, the scale may change when you remove the data point, 15, 85, but the rest remains in the same position relative to the values on each axis of ordinates. What change will be , however, is the curve on which 15 85 approached a local y maximum.

    Scatterplots will always leave a gap in the line/curve of connection where there are a pair of missing data. There are two ways to close the gap.

    If the chart is an essentially linear relationship, you can use a calculated value is pair up with the lack of value x. The downside of this is that the representation of this point will be indistinguishable on the map of the other data points, measured.

    A better way would be to make two tables, one with the full data set, the other with the partial sets, but with the pair missing completely removed.

    Adjust the cards the same size and have the same scales on each axis, then just remove one of the cards except the data points, the curves connecting the data points, the x axis of ordinates and the legend showing the color and the forms used to plot each series.

    Give a graphic a transparent filling and place it in front of the other.

    Kind regards

    Barry

  • Menu of performance graph 3D point cloud

    Menu custom graphic execution 3D point cloud does not (Advanced-> Run-time).

    The default menu can also not be disabled.  Turn it off does not work (Advanced-> Run - time-> Disable and properties VI-> the appearance of the window-> Custom-> allow default shortcut menus (stop)).

    How do you turn off the run menu by default graph 3D point cloud?  In addition, how to replace it run with menu custom?

    You want to be able to graph 3D right click and select from the menu custom execution.  I saw the work around here (http://forums.ni.com/t5/LabVIEW/Solution-3DGraph-right-click-menu/m-p/903569/highlight/true#M407348), but it does not work.

    Any ideas?

    Hi Battler

    You can override the menu right click using the context Menu Activation? and the events of contextual Menu (user) selection.

    Don't know what version you use. I've attached an example in LV 8.6.

  • Graph XY no lines, just Points?

    Hi all

    I want to build a graph of pressure relative to the temperature.  It must be a standard XY graph, but I just want to see the scatter point without lines connecting the points.  Is it possible to eliminate the lines between points (or make them invisible)?

    Thank you!

    You can do this in the properties of the graph. Right-click on the chart and select Properties. Go to the locations tab.  Select an icon for the point (something other than ) in the third column of icons. Then select the top of the list in the fourth column. It is the symbol with the track of the points, but no lines. This will give you what you want.

  • U3415W, shows that the lines and flickering

    If I plug a DP cable on the screen, it shows nothing and goes into 'emod to save energy'. I have to restart my pc in "safe mode" to see the screen again.

    To remedy this, I tried CDM and this just made the screen start flickering and showing the lines upward, so I googled and someone in this forum said that if I disable the 1.2 DP (which is default) things would go smoothly.

    Ive tried with just the cable of CDM at the U3415W. Did not work.
    Ive tried with the CDM cable to the U3415W and the DP cables my U2713W and then I just get the U2713W to work.

    Ive attached a picture with 2 screens side by side, so you can see what I mean.

    What is my graphics card which cannot handle this?
    Ive attached my information from dxdiag on my display information.

    Help, please.

    ---------------
    Display devices
    ---------------
    Card name: AMD Radeon 200 R9 / HD 7900 Series
    Manufacturer: Advanced Micro Devices, Inc.
    Track type: processor AMD Radeon Graphics (0 x 6798)
    DAC type: DAC (400 MHz) internal
    The device key: Enum\PCI\VEN_1002 & DEV_6798 & SUBSYS_04441043 & REV_00
    Memory display: 2795 MB
    Dedicated memory: 3051 MB
    Shared memory: 3840 MB
    Current mode: 2560 x 1440 (32 bit) (60 Hz)
    Name of the monitor: generic PnP monitor
    Monitor model: DELL U2713HM
    Monitor ID: DEL4080
    Native mode: 2560 x 1440 (p) (59,951 Hz)
    Output type: external Displayport
    Driver name: aticfx64.dll, aticfx64.dll, aticfx64.dll, aticfx32, aticfx32, aticfx32, atiumd64.dll, atidxx64.dll, atidxx64.dll, atiumdag, atidxx32, atidxx32, atiumdva, atiumd6a.cap, atitmm64.dll
    The driver file version: 8.17.0010.1395 (English)
    Driver version: 15.200.1046.0
    DDI version: 11
    : Model WDDM 1.1 driver
    Driver attributes: Final retail
    Date of the driver/size: 23/06/2015 04:08:44, 1440592 bytes
    Would be WHQL logo: Yes
    Date stamp WHQL:
    The instrument identifier: {D7B71EE2-24D8-11CF-8076-4E24BEC2C535}
    Vendor ID: 0 x 1002
    Device ID: 0 x 6798
    SubSys ID: 0 x 04441043
    Revision ID: 0x0000
    Strong name of the driver: oem50.inf:ATI. Mfg.NTamd64.6.1:ati2mtag_R575:15.200.1046.0:pci\ven_1002&dev_6798
    The driver rating: 00E62001
    Video Accel: ModeMPEG2_A ModeMPEG2_C
    Deinterlace caps: {6E8329FF-B642-418B-BCF0-BCB6591E255F}: caps Frames(Prev/Fwd/Back) = (0,0,1) (In/Out) Format (YUY2, YUY2) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (YUY2, YUY2) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: caps Frames(Prev/Fwd/Back) = (0,0,0) Format (In/Out) = (YUY2, YUY2) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
    {6E8329FF-B642-418B-BCF0-BCB6591E255F}: caps Frames(Prev/Fwd/Back) = (0,0,1) (In/Out) Format (UYVY, UYVY) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (UYVY, UYVY) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: caps Frames(Prev/Fwd/Back) = (0,0,0) Format (In/Out) = (UYVY, UYVY) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) (YV12, 0 x 32315659) = Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {3C5323C1-6FB7-44F5-9081-056BF2EE449D}: caps Frames(Prev/Fwd/Back) = (0,0,2) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {552C0DAD-CCBC-420B-83C8-74943CF9F1A6}: caps Frames(Prev/Fwd/Back) = (0,0,2) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {6E8329FF-B642-418B-BCF0-BCB6591E255F}: caps Frames(Prev/Fwd/Back) = (0,0,1) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC1, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC2, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC3, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC4, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (S340, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (S342, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    D3d9 Overlay: Unsupported
    DXVA-HD: not supported
    DDraw status: enabled
    D3D status: enabled
    AGP status: enabled

    Card name: AMD Radeon 200 R9 / HD 7900 Series
    Manufacturer: Advanced Micro Devices, Inc.
    Track type: processor AMD Radeon Graphics (0 x 6798)
    DAC type: DAC (400 MHz) internal
    The device key: Enum\PCI\VEN_1002 & DEV_6798 & SUBSYS_04441043 & REV_00
    Memory display: 2795 MB
    Dedicated memory: 3051 MB
    Shared memory: 3840 MB
    Current mode: 3440 x 1440 (32 bit) (60 Hz)
    Name of the monitor: Dell U3415W (miniDisplayPort)
    Monitor model: DELL U3415W
    Monitor ID: DELA0A7
    Native mode: 3440 x 1440 (p) (59,973 Hz)
    Output type: external Displayport
    Driver name: aticfx64.dll, aticfx64.dll, aticfx64.dll, aticfx32, aticfx32, aticfx32, atiumd64.dll, atidxx64.dll, atidxx64.dll, atiumdag, atidxx32, atidxx32, atiumdva, atiumd6a.cap, atitmm64.dll
    The driver file version: 8.17.0010.1395 (English)
    Driver version: 15.200.1046.0
    DDI version: 11
    : Model WDDM 1.1 driver
    Driver attributes: Final retail
    Date of the driver/size: 23/06/2015 04:08:44, 1440592 bytes
    Would be WHQL logo: Yes
    Date stamp WHQL:
    The instrument identifier: {D7B71EE2-24D8-11CF-8076-4E24BEC2C535}
    Vendor ID: 0 x 1002
    Device ID: 0 x 6798
    SubSys ID: 0 x 04441043
    Revision ID: 0x0000
    Strong name of the driver: oem50.inf:ATI. Mfg.NTamd64.6.1:ati2mtag_R575:15.200.1046.0:pci\ven_1002&dev_6798
    The driver rating: 00E62001
    Video Accel: ModeMPEG2_A ModeMPEG2_C
    Deinterlace caps: {6E8329FF-B642-418B-BCF0-BCB6591E255F}: caps Frames(Prev/Fwd/Back) = (0,0,1) (In/Out) Format (YUY2, YUY2) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (YUY2, YUY2) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: caps Frames(Prev/Fwd/Back) = (0,0,0) Format (In/Out) = (YUY2, YUY2) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
    {6E8329FF-B642-418B-BCF0-BCB6591E255F}: caps Frames(Prev/Fwd/Back) = (0,0,1) (In/Out) Format (UYVY, UYVY) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (UYVY, UYVY) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: caps Frames(Prev/Fwd/Back) = (0,0,0) Format (In/Out) = (UYVY, UYVY) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) (YV12, 0 x 32315659) = Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {3C5323C1-6FB7-44F5-9081-056BF2EE449D}: caps Frames(Prev/Fwd/Back) = (0,0,2) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {552C0DAD-CCBC-420B-83C8-74943CF9F1A6}: caps Frames(Prev/Fwd/Back) = (0,0,2) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {6E8329FF-B642-418B-BCF0-BCB6591E255F}: caps Frames(Prev/Fwd/Back) = (0,0,1) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive
    {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: caps Frames(Prev/Fwd/Back) = (0,0,0) (In/Out) Format (NV12, 0x3231564e) = VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC1, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC2, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC3, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (IMC4, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (S340, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format (In/Out) = (S342, UNKNOWN) Frames(Prev/Fwd/Back) = (0,0,0) Caps
    D3d9 Overlay: Unsupported
    DXVA-HD: not supported
    DDraw status: enabled
    D3D status: enabled
    AGP status: enabled

    Good point about the button. Get it exchanged.

  • Combination line point cloud, or disperse with trend marker

    Hi all

    I need a line and dispersion of APEX 4.2 combination...

    Looks like AnyChart can do it now...

    See:

    Scatterplot: combination of line and marker Charts & lt; / title & gt; & lt; link href = & quot;... /styles/Sample-Toolbar.CSS & quot;...

    And it seems that from the APEX 4.2 yet we cannot do this, if I saw the reference in this forum for a request for improvement for the next version (thank you Hilary)

    In the meantime, so I have something...

    The need is for a set of guidelines - a box has peaked, for example - to illustrate clearly the points in and out of the limits of quality.  In our case, the solid lines are constant for all parcels.  Dispersion points, and the series will change according to the data.

    In addition, the guide or trend lines are not horizontal or straight - they form a peak, as the roof of a House.

    I use trend lines, or I could use thresholds (backstory).  So far I do not see how to build a sharp trend line, or a threshold area has peaked.  Is it possible > I'm still looking.

    Suggestions?

    Thank you

    Karen

    I figured out and just make a simple line - scatterplot.

    The trick is, start with the line chart, several series, and then change one or more of the series until the marker using the series Type selection list.

    When you start with a Scatter Plot, but this may be more close to what you want in the end, the series Type selection list isn't here.

    Reason: Request for a point cloud format is different - you can't dynamically change the type series unless the same query format applies.

  • After selecting an area and the application of fill, where the "done" or "Tick" to remove the moving dotted line?

    After selecting an area and the application of fill, where the "done" or "Tick" to remove the moving dotted line?

    Cmd - H show/hide extras, deselects cmd - D.

  • Satellite M307 - a lot of points and lines on the screen

    I bought this new pc in China there is a half year
    However, when I move the screen today, there are still a lot of points and lines in this respect.

    But if I don't touch it, it will be OK. I think this may be caused by the connection between the screen and the main physical system. Please contact me: [email protected]

    Thank you!

    Hello!

    I agree with you it's a connection problem or the display is faulty.

    I think your laptop should be still under warranty then I would go to a local ASP.
    They can order all the necessary parts and Exchange.

    Good bye

  • I bought the 1 TB cloud storage.  Now all my iPhoto albums disappeared and I don't know where I can not find where to open iCloud!

    I bought the 1 TB cloud storage. Now all my albums iPhoto/Photos and events have disappeared, and I don't know where to find them!  Also, I don't know how to open my iCloud.

    Rosalind

    Try to go to iCloud.com, log and see if they are there.

    Login to iCloud in the system preferences/iCloud.

  • iPhone 3G, without warning, the iPhone screen shows (vertical hold) logo from itunes, with a port usb and the arrow pointing up. I have 10.7 update iPhones.

    Without warning, the iPhone screen shows (taken vertical) logo to itunes with a usb port and the arrow pointing up. I have 10.7 update iPhones. When this iPhone is connected to the computer, Apple recommendation is to "restore" the iPhone. If I do this, would be erased all data stored? Thank you

    You would have to post on Apple Support communities to get a definitive answer on this one.

  • Point central graduated filter and lines

    Hello

    Using Mac OS X 10.6.8 with LR 3.4.1

    When you use the graduated filter, that I used to see a place in the Center and lines that indicate that I had covered by the filter. Now, I see only a small mire, no place in centre, no lines. Is this correct? There was an update that removed the stain and lines? I find it difficult to judge what is covered by the filter now.

    Thank you very much

    StephenC

    www.stephenc.co.za

    Press 'H' to show the pins.

    Beat

  • Line graph bar: even scale and dynamics

    Hello world

    I am trying to build a report that is real, budget, the previous year and forecast of dollar amounts for the current year by period. The requirement is that are real and projected bar graphs and graphical prior budget year and line. This part was simple, however, the two scales on the left and right axis are not aligned with each other so that it cause confusion between reports. I need to find a way to force the scale for lines on the right to be the same as the scale for the bars to the left, but I also need to make sure that the left updates dynamically based on the data scale.

    Any ideas on how to force the same scales and always updated dynamically according to the data?

    -Joe

    Joe,

    On what version work? In the last editions at least there is a button (icon is a blue star in the part of graphical configuration). 'S called it the advanced properties. There is a property, you can set: "line to synchronize and the axis of the bar."

    Concerning

  • Point cloud: color gradient

    Hello

    I can't find an example where I can create a custom class plot. I have to be able to line the plot of color based on the value of Y and make it look like a smooth gradient. Ideally, I would like to change the size of the line as well. This would allow me to "draw" the 3 variables using a 2D graph. I started (VB.Net):

    Imports NationalInstruments.UI

    Public Class clCustomPlot

    Inherits from point cloud

    Public Sub New()

    MyBase.New)

    End Sub

    Protected / Sub OnBeforeDraw(ByVal sender As Object, ByVal e As NationalInstruments.UI.BeforeDrawXYPlotEventArgs)
    End Sub

    End Class

    But VS tells me that:

    Void of MeasStudioGraphLineColour error 'OnBeforeDraw' cannot be declared 'overrides' because it does not replace a sub in a base class.
    Thanks for your help,

    Nicolas

    I got it to work! For all those who are interested, here's a VB.Net custom dispersion diagram that will show you how/color along the line of control.

    Imports NationalInstruments.UI

    Imports System.Drawing

    Imports System.Drawing.Drawing2D

    Public Class clCustomScatterPlot

    Inherits from point cloud

    Private dblMin As Double

    Private dblMax As Double

    Private colMinColour As System.Drawing.Color

    Private colMaxColour As System.Drawing.Color

    Public Sub New (ByVal MinValue As Double, ByVal MaxValue As Double _)

    ByVal MinValueColour As System.Drawing.Color, ByVal MaxValueColour As System.Drawing.Color)

    MyBase.New)

    "no check is performed for the fact that MinValue<>

    dblMin = MinValue

    dblMax = MaxValue

    colMinColour = MinValueColour

    colMaxColour = MaxValueColour

    End Sub

    Protected override void OnBeforeDraw (ByVal e As BeforeDrawXYPlotEventArgs)

    "Clip data, browse the data cut, map and draw."

    Dim intrigues as XYPlot = e.Plot

    Var clippedXData() As Double = Nothing

    Var clippedYData() As Double = Nothing

    parcel of land. ClipDataPoints (clippedXData, clippedYData)

    For i As Integer = 0 To clippedXData.Length - 2

    Protected x 1 Double = clippedXData (i)

    Protected x 2 = Double clippedXData (i + 1)

    Var y1 As Double = clippedYData (i)

    Var y2 As Double = clippedYData (i + 1)

    Dim point1 As PointF = plot. MapDataPoint (e.Bounds, x 1, y1)

    Dim point2 As PointF = plot. MapDataPoint (e.Bounds, x 2, y2)

    Var pen As Pen = New Pen (ValueToColour (y2))

    Dim g As Graphics = e.Graphics

    g.DrawLines (pen, new PointF() {point1, point2})

    Next

    e.Cancel = True

    End Sub

    Private Function ValueToColour(ByVal value As Double) As Color

    If value<= dblmin="" then="" return="">

    If value > = dblMax then return colMaxColour

    Pctg As Double = (value - dblMin) / (dblMax - dblMin)

    Dim a, r, g, b As Integer

    a = CInt (CInt (colMinColour.A) + pctg * (CInt (colMaxColour.A) - CInt (colMinColour.A)))

    r = CInt (CInt (colMinColour.R) + pctg * (CInt (colMaxColour.R) - CInt (colMinColour.R)))

    g = CInt (CInt (colMinColour.G) + pctg * (CInt (colMaxColour.G) - CInt (colMinColour.G)))

    b = CInt (CInt (colMinColour.B) + pctg * (CInt (colMaxColour.B) - CInt (colMinColour.B)))

    r = Math.Max (0, r): r = Math.Min (255, r)

    g = Math.Max (0, g): g = Math.Min (255, g)

    b = Math.Max (0, b): b = Math.Min (255, b)

    Return System.Drawing.Color.FromArgb (a, r, g, b).

    Var col As Color = System.Drawing.Color.FromArgb (a, r, g, b).

    Return col

    End Function

    End Class

  • Angle of line graph

    Hey guys,.

    Is there a faster way to find the angle of one line graph other than the use of trigonometry?

    Reminder: If I create a new line by using the add() method, this line should get a gradient starting point and end point (these are donated and used to create the first rhythm line). In order to use the right angle in the settings of gradients, I need to know the angle of the line graph. If I have to use trigonometry, I'd use geometricBounds namely the height/width of the bounding box, discover the departure and the arrival of my line (which I have) and thereby, determine which quadrant, the line crosses using the formula (sin, cos, tan) and finally convert radiant in degree. Phew, so if there is any way how he just read the angle of the line, tat would be cool.

    Thank you

    Frank

    Hi Frank,.

    I'll start by saying: I don't know if there is a way to do this, I couldn't find one in the API. The thing is that if you physically to draw a line in InDesign the angle in the interface is always zero. If you rotate the line by a certain number of degrees, it will be that number on the screen.

    However, the math actually find the angle of a line are quite easy and fun.

    var myLine = app.activeDocument.graphicLines.item(0).paths.item(0).entirePath;
    var a = myLine[0][0] - myLine[1][0];
    var b = myLine[1][1] - myLine[0][1];
    var angleDeg = Math.atan2(a, b) * 180 / Math.PI;
    $.writeln(angleDeg);
    

    If you use this code it will calculate the actual angle between 2 points of the line where the direction of the line is:

    down to 0 degrees

    90 degrees left

    up to 180 degrees

    Right 90 degrees

    Brett

  • How can I change the color of line in a line graph?

    I used Illustrator to create a line graph. (Not my option you want because I normally import from R and then edit, but the manual wanted to show that you can create graphic and edit them in Illustrator)

    In any case, I did all the editing, except that I can't change the color of the line. My job requires me to match the example of manual and the manual does not provide any instructions on how to do it. I did pretty much any method I can think and the rest always gray line. I'm almost ready to give up everything and lose the points, but something as simple as the color cannot be that hard, right? Right?

    You need spend the focus from filling in the race or the color Panel, or by using the shortcut SHIFT - X. You can use Select > same > Fill and stroke to select all parts of the line and then a Cmd (Ctrl)-J to connect all the parts.

Maybe you are looking for

  • Fedora 18 on Toshiba Satellite connected but no internet

    Hello, I installed Fedora 18 on my new Toshiba Satellite and I encounter enormous problems. More seriously, I can't use internet. Even when it connects to my wifi network, after a few seconds of normal behavior it won't see the internet more (even if

  • My 5220 MG no longer works on my desktop PC's wireless network.

    I tried to uninstall and reinstall all software. The last uninstall, I also cleaned the registry of all related Articles by Canon. Nothing works. The symptoms are I can install and log the network and printing. But if I turned off the PC, I'm back to

  • Linksys ac1200 iptv

    Hello I just changed my router to a linksys ac1200, updated its firmware and entered my country. For some reason any now my IPTV does not work.Iptv uses HTTPS and port 8080 See you soon

  • Add or change usertiles

    In the accounts user/change your account picture I don't like pictures of existing user.  Is there anyway I can add my own or change the existing?

  • How do I change my password or PIN on windows 8?

    How can I change my password or PIN with windows 8