none
What is the C# methodology for a Dashboard layout and update RRS feed

  • Question

  • Hello,

    I am new to C# need some guidance please. Assume I have Dashboard which has the following wordings. As the vehicle moves numbers pop up. If they cross a certain threshold the numbers turn red. 

    Speed

    Fuel Consumption

    Battery life

    RPM

    I have the full code for this I need to locate 1. What code is creating this Dashboard 2. What code will actually populate it. I am assuming the code that populates will decide on the values color change. 

    Q1: What is the C# standard practice for creating the Dashboard? If I were to search the code for the word "Speed" should I expect it in a xml file? Or a JSON file? I want to locate that file and change Speed to say Speed1 recompile it run it and see if I can see the change in the Dashboard.

    Q2: The code which populates it must be in a altogether different module. However it must be also having in its parameters the destination of the value. So in this case would it be XML or JSON. Here also I want to hard code my own value and see it reachs its proper destination. 

    My guess is Q1 it is XML and Q2 it is JSON. Please clarify.

    Are there any standard C# methods which are used to create a DashBoard and standard methods to update a Dashboard?

    Lastly are there any other common "strings" I can search for to pinpoint the code of my interest?  Thanks

     

    Friday, August 31, 2018 5:44 AM

Answers

  • For the dashboard UI in ASP.NET please post your question in the ASP.NET forums. They will better be able to assist you with that.

    Michael Taylor http://www.michaeltaylorp3.net

    Saturday, September 1, 2018 3:19 AM

All replies

  • This is the C# forums and you're really talking about a UI layout for a dashboard. What type of application are you trying to build (e.g. Winforms, WPF, ASP.NET, etc) so we can move your questions?

    The questions around XML and JSON wouldn't be related to a dashboard in any way. They are going to be the data formats that your data layer reads. What that format is in is mostly driven by where the data comes from. If you're getting it from a DB then it'll be neither. If you're calling a REST API then you'll get JSON. A web service tends to return XML. Irrelevant your data layer should convert this to business objects (or raw data points) you need in your UI. The fact that it came from XML/JSON/whatever isn't relevant.

    Q2 - I believe this is completely tied to the UI question. If you're using a UI framework that has a charting component then you'll just use it. The charting component will tell you what it expects.


    Michael Taylor http://www.michaeltaylorp3.net

    Friday, August 31, 2018 3:31 PM
  • Hi Michael,

    Sorry for the delay and thanks your answer gave me a different angle to think. Your comments helped me to understand my position better. Thanks again. I am using REST API to talk to the DashBoard. There is no DB involved. So it will be JSON. So could you kindly re-categorize my posting please? Meanwhile I will logically isolate the occurrence of the word "Speed" make it "Speed1" and see if that get reflected in the Dashboard. All I need is one proof then I can forge ahead. 

    Friday, August 31, 2018 10:25 PM
  • So your data comes from REST so you're using JSON. What UI are you trying to build - Winforms, WPF, ASP.NET, etc? This will determine where your Dashboard question needs to go.

    Michael Taylor http://www.michaeltaylorp3.net

    Friday, August 31, 2018 10:44 PM
  • I use the ASP.NET thanks
    Saturday, September 1, 2018 2:04 AM
  • For the dashboard UI in ASP.NET please post your question in the ASP.NET forums. They will better be able to assist you with that.

    Michael Taylor http://www.michaeltaylorp3.net

    Saturday, September 1, 2018 3:19 AM