FlexChart1

Posted by: saidnai on 28 April 2021, 8:32 pm EST

  • Posted 28 April 2021, 8:32 pm EST

    Hi,

    I need to bild the function with FlexChart1 as in picture2 (P2).
    1) The balck line Shows the weight.
    2) The 2 red lines are the upper/lower tolerance
    3) The green line is the normal weight.
    The weight is read from the System and shown no Problem.
    With save button the weight value should be send to the FlexChart1 and shown in the graphic (black lines).
    The picture1 (P1) Show the FlexChart1 that i made Ready for the rest that i Need to bild.
    Any help is appreciated.

    Best regards
    Said

  • Replied 3 May 2021, 4:43 pm EST

    Hi Said,

    I apologize for the delay and thank you for sharing the snapshots.

    You may add series for lower/upper/normal lines. I have attached a sample which implements the same. (see FlexChartSample.zip)

    Just in case required, this requirement can also be implemented using the Line annotation. Please see attached sample for the same. (see FlexChartSample_WithAnnotations.zip)

    Best Regards,
    Kartik

    FlexChartSample.zip

    FlexChartSample_WithAnnotations.zip
  • Replied 3 May 2021, 8:18 pm EST

    Dear Kartik,

    Thanks for the reply. The sample are good in CS. I forgot to inform that i need the samples in VB.

    Again thanks for the good support.

    Best regards
    Said
  • Replied 3 May 2021, 8:39 pm EST

    Dear Kartik,

    After running one CS sample the weight will not be shown in the chart but on the right side. See attahce Picture.

    Best regards
    Said
  • Replied 3 May 2021, 11:37 pm EST

    Hi Said,

    Thank you for sharing the snapshot.

    It is working fine at our end. Please see image below.

    I have tested it with the latest build 4.5.20201.416. Could you please share your environment details along with the build version you are using?

    And also I would request you to try the sample on a different system with different Dpi settings and share your observations with us.

    Best Regards,
    Kartik
  • Replied 4 May 2021, 5:17 pm EST

    Hi Kartik,

    Please i need the sample in VB. For the C1 Version and DPI see attached.

    again thanks for your support.

    Best regards
    Said
  • Replied 4 May 2021, 7:30 pm EST

    Hi Said,

    Thank you for sharing the snapshot.

    We have tried the sample on multiple environments including the one you provided but this behavior is not reproducible at our end. Would it be possible for you to try the sample on a different environment at your end?

    JFYI, I have also attached the samples in VB. (see FlexChartSampleVB.zip & FlexChartSample_WithAnnotationsVB.zip)

    Regards,
    Kartik

    FlexChartSampleVB.zip

    FlexChartSample_WithAnnotationsVB.zip
  • Replied 5 May 2021, 2:48 am EST

    Hi Kartik,

    Unlikely it is not working i guess the .Net Framework Version.
    As i open your samples, it seems they are made with VS2019 .Net Framework 4.8.
    I am using VS2017 and I compile for .Net Framework 4.5.2 like the C1 Component.

    I have joined a small VB project to give an Impression of what i want to do. The user Input the value Upper and Lower pusch the button paint Upper and Lower and it should be Show in the flexchart. the same for Middle and weight.

    I really appreciat you support

    Best regards
    Said
  • Replied 5 May 2021, 2:50 am EST

    attached
  • Replied 5 May 2021, 2:54 am EST



  • Replied 5 May 2021, 10:29 pm EST

    Hi Said,

    Thank you for sharing the snapshot.

    I have attached a sample which implements the same. (see FlexChartDraw_VB.zip)



    JFYI, I have also tested the previous sample with .NET 4.5.2 and it works fine at our end. Please let us know if the attached sample also shows the same behavior.

    Best Regards,
    Kartik

    FlexChartDraw_VB.zip
  • Replied 6 May 2021, 6:09 pm EST

    Hi Kartik,

    I believe it is working on your side. It is really amazing that i do not get the same on my side. Attached the result after click on all 3 buttons.
    The red and green line will not be painted.
    The black line for the weight is painted but on the left on top as vertical line.

    Best regards
    Said

  • Replied 6 May 2021, 7:32 pm EST

    Hi Said,

    Could you please try running the FlexChartExplorer product sample present at location Documents\ComponentOne Samples\WinForms\v4.5.2\FlexChart\CS and see if charts present in it are also having the same behavior?

    Best Regards,
    Kartik
  • Replied 6 May 2021, 8:25 pm EST

    Hi Kartik,

    is working. See attached.

    Best regards
    Said

  • Replied 6 May 2021, 8:44 pm EST

    Hi Kartik,

    I found the problem. It is About the values of the following:

    FlexChart1.AxisY.Min = 9800 '9.8
    FlexChart1.AxisY.Max = 10200 '10.2
    FlexChart1.AxisY.MajorUnit = 20 '0.02


    Best regards
    Said

  • Replied 6 May 2021, 9:28 pm EST

    Hi Kartik,

    The only Thing now is how to assign the weight value one by one and not as a Llist and after that paint it in the Flexchart.

    Best regards
    Said
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels