Real-Time Feed Material Design

Developer
Size
2,668 Kb
Views
34,408

How do I make an real-time feed material design?

What is a real-time feed material design? How do you make a real-time feed material design? This script and codes were developed by ZingChart on 24 August 2022, Wednesday.

Real-Time Feed Material Design Previews

Real-Time Feed Material Design - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Real-Time Feed Material Design</title> <script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<script>
zingchart.MODULESDIR = "https://cdn.zingchart.com/modules/";
ZC.LICENSE =["569d52cefae586f634c54f86dc99e6a9","ee6b7db5b51705a13dc2339db3edaf6d"];
</script> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="container"> <div id="myChart"></div>
</div>
<div id="container1"> <button id="clear">Clear</button> <button id="stop">Stop</button> <button id="start">Start</button>
</div> <script src="js/index.js"></script>
</body>
</html>

Real-Time Feed Material Design - Script Codes CSS Codes

@import 'https://fonts.googleapis.com/css?family=Roboto';
html,
body { width: 100%; height: 100%;
}
#container { display: flex; flex-flow: column wrap;
}
#myChart { margin: 0 auto; height: 300px; width: 100%; box-shadow: 5px 5px 5px #eee; background-color: #fff; border: 1px solid #eee;
}
#container1 { display: flex; align-items: center; justify-content: center;
}
button { margin: 40px; padding: 15px; background-color: #FF4081; border: none; color: #fff; box-shadow: 5px 5px 5px #eee; font-size: 16px; font-family: Roboto; cursor: pointer; transition: .1s;
}
button:hover { opacity: .9;
}
/*button movement*/
button:active { border-width: 0 0 2px 0; transform: translateY(8px); opacity: 0.9;
}

Real-Time Feed Material Design - Script Codes JS Codes

var myConfig = { //chart styling type: 'bar', globals: { fontFamily: 'Roboto', }, backgroundColor: '#fff', title: { backgroundColor: '#1565C0', text: 'Bar Charts', color: '#fff', height: '30x', }, subtitle: { backgroundColor: '#1976D2', text: 'In Real-Time', color: '#fff', height: '30px', }, plotarea: { marginTop: '80px' }, scaleY: { guide: { visible: false }, values: '0:100:25' }, tooltip: { visible: false }, //real-time feed refresh: { type: 'feed', transport: 'js', url: 'feed()', interval: 200 }, scaleX: { values: [] }, series: [{ values: [], shadow: 1, shadowColor: '#eee', shadowDistance: '20px', backgroundColor: '#2196F3', hoverState: { visible: false } }]
};
zingchart.render({ id: 'myChart', data: myConfig, height: '100%', width: '100%'
});
//real-time feed random math function
window.feed = function(callback) { var tick = {}; tick.plot0 = parseInt(10 + 90 * Math.random(), 10); callback(JSON.stringify(tick));
};
//clear start stop click events
document.getElementById('clear').addEventListener('click', clearGraph);
document.getElementById('start').addEventListener('click', startGraph);
document.getElementById('stop').addEventListener('click', stopGraph);
function clearGraph() { zingchart.exec('myChart', 'clearfeed')
}
function startGraph() { zingchart.exec('myChart', 'startfeed');
}
function stopGraph() { zingchart.exec('myChart', 'stopfeed');
}
Real-Time Feed Material Design - Script Codes
Real-Time Feed Material Design - Script Codes
Home Page Home
Developer ZingChart
Username zingchart
Uploaded August 24, 2022
Rating 3
Size 2,668 Kb
Views 34,408
Do you need developer help for Real-Time Feed Material Design?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

ZingChart (zingchart) Script Codes
Create amazing marketing copy with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!