vMix Forums
»
General
»
General Discussion
»
Realtime animated graph from data source?
Rank: Newbie
Groups: Registered
Joined: 9/28/2020(UTC) Posts: 3
|
Is it possible to do a realtime animated graph from an api data source? So like for example when a piece of data changes this graph visually gets updated in real time? If so, how do you do this?
I read something about something called xaml and wpf but I couldn't find any actual examples of how to create one that works in vmix. I found an example xaml project somewhere on these forums but that one didn't have any logic just the visual xaml so that wasn't what I was looking for. I tried creating my own c# xaml project, since the example one was in visual basic which I don't know, but I couldn't get it to build into a dll or anything.
Is there an easier way to do this, or is this xaml route really the only solution, or will this xaml route not even be a solution? If so, is there a tutorial or guide that tells you from start to finish how to set up a xaml wpf project for vmix in visual studio and then build it into a dll that can be imported into vmix that supports data inputs that can be connected to data sources in vmix?
*edit I've gotten a dll to generate and import but I'm still not sure how to link things to Properties or to a data source input. I'm not sure if the code itself is even executing either.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,223 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Are you sure you want to venture there ? and with graphs no less! While you could use data to al sorts of things in a XAML (.dll) file it's processing will have to be incorporated within it's code behind (not from a loaded datasource within vmix / not directly anyways) Advice you to search the forum (or even better Google will will give you forum links) a bit more for like "vmix wpf dll" and alike XAML is a solution if you want the "title/graphics" loaded directly within vMix , other options are external application that lets you import a video feed from them like NDI or just plain screengrabs form a working application https://forums.vmix.com/...ted--data-driven--titlesPS . fun part about these .dll titles , if you want to edit them you will have to close vMx as just deleting their input is not going to release them for editing/saving
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/23/2017(UTC) Posts: 189 Thanks: 1 times Was thanked: 52 time(s) in 42 post(s)
|
I would use a web browser input and webpage developed for that API. Chart.js is a great library for animated graphics on the web. If you need it, contact me: mart.leib.estonia@gmail.com
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 9/28/2020(UTC) Posts: 3
|
Originally Posted by: doggy Are you sure you want to venture there ? and with graphs no less! While you could use data to al sorts of things in a XAML (.dll) file it's processing will have to be incorporated within it's code behind (not from a loaded datasource within vmix / not directly anyways) Advice you to search the forum (or even better Google will will give you forum links) a bit more for like "vmix wpf dll" and alike XAML is a solution if you want the "title/graphics" loaded directly within vMix , other options are external application that lets you import a video feed from them like NDI or just plain screengrabs form a working application https://forums.vmix.com/...ted--data-driven--titlesPS . fun part about these .dll titles , if you want to edit them you will have to close vMx as just deleting their input is not going to release them for editing/saving I see thanks for the info. I was trying to do the xaml stuff with visual studio but it seems blend may be a better application for this? Can you tell me if this should indeed be possible via xaml? - Create a graphic that is essentially a bar graph.
- A Vmix Data Source input is used as input into this xaml imported component setting "properties" of some kind that then update the bars in real time ( based on vmix's data source refresh interval )?
- Potentially other configurable properties on this xaml configurable by UI for example "color of bars" or something like that. Maybe related to something called a "ShowProperties" function?
What did you mean by "not from a loaded datasource within vmix / not directly anyways", is there an indirect way to do it?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,223 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Blend is part of visual studio You can read and process what is put in a textblock fed by a vMix datasource the usual way with codebehind hence indirectly (else full data files are handled within the code ie loading and reading etc) But why not a little search in the forum first , not always need to code ? https://forums.vmix.com/...--Titolo-Grafico-a-Barre
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 9/28/2020(UTC) Posts: 3
|
alright thanks for the link.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/25/2020(UTC) Posts: 31
Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Realtime animated graph from data source?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close