FlexChart1

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

    • Post Options:
    • Link

    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

  • Posted 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

  • Posted 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

  • Posted 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

  • Posted 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

  • Posted 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

  • Posted 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

  • Posted 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

  • Posted 5 May 2021, 2:50 am EST

    attached

  • Posted 5 May 2021, 2:54 am EST

  • Posted 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

  • Posted 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

  • Posted 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

  • Posted 6 May 2021, 8:25 pm EST

    Hi Kartik,

    is working. See attached.

    Best regards

    Said

  • Posted 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

  • Posted 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

  • Posted 9 May 2021, 6:13 pm EST

    Hi Said,

    I am happy to hear that the issue has been resolved.

    > The only Thing now is how to assign the weight value one by one and not as a Llist

    You can use an ObservableCollection as Series’s (Weight) DataSource and can add weights one by one to the collection as per your requirement. Please refer to the attached modified sample which implements the same. (see FlexChartSample_VBMod.zip)

    Best Regards,

    Kartik

    FlexChartSample_VBMod.zip

  • Posted 9 May 2021, 6:43 pm EST

    Hi Kartik,

    Perfect working as needed. I was using another compnent for this issue. now all from C1. :slight_smile:

    Thanks a lot

    Best regards

    Said

  • Posted 17 June 2021, 7:45 pm EST

    Hi,

    I need to come back to this issue The reason is, i need to extend AxisX to be Extended at the end and not resized (smaller).

    Start value : FlexChart1.AxisX.Max = 80

    The 80 should be extended by step +5 (85, 90, 95, etc.) each time i add 1.

    Best regards

    Said

  • Posted 20 June 2021, 7:55 pm EST

    Hi Said,

    Thank you for sharing the snapshot.

    You may use an AxisScrollbar for extending X-axis as follows:

    _xAxisScrollbar = New AxisScrollbar(flexChart1.AxisX)
    

    And while adding an item you can update AxisScrollbar’s Maximum/UpperValue/LowerValue properties as follows:

    
    Dim max As Double = 80
    Private Sub ExtendAxisX()
                max = max + 5
                flexChart1.AxisX.Max = max
                DrawUpperAndLower(10100, 9900)
                DrawMiddle(10000)
    
                _xAxisScrollbar.Maximum = max
                _xAxisScrollbar.UpperValue = max
                _xAxisScrollbar.LowerValue = max - 80
    End Sub
    
    

    Please refer to the same from the attached sample. (see FlexChartSample_Mod2.zip)

    Best Regards,

    Kartik

    FlexChartSample_Mod2.zip

  • Posted 24 June 2021, 4:46 pm EST

    Dear Sagar,

    I have adjusted the function as needed and working fine.

    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