Idyll-lang: Make your app stand out with data-driven stories
source link: https://www.tuicool.com/articles/hit/UVBvUja
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Idyll-lang: Make your app stand out with interactive data-driven stories
Do you know what’s hot right now?
Explorable explanations.
Explorable explanations are data-driven documents which have interactivity. You have seen many EE’s on the web, everyone loves them!
Take this carefully crafted graph for instance.
It’s a well designed graph with animations and it’s well informative.
Explorable explanations make things fun — The way we receive the information is compelling.
We crave for new information, especially with great delivery and aesthetics.
Here’s a great article going in more depth on being an active reader, reactive documents and contextual information .
What is idyll?
Idyll is an open-source markup language and toolkit for producing interactive web pages. You give Idyll a markup file, and it compiles that file to a full bundle of HTML, JavaScript, and CSS that can run in anyone’s web browser.
At it’s core, Idyll is a markup language. Not just any markup language, Idyll let’s you leverage modular/component approach like any modern language. Idyll also lets you reuse third party packages (npm) and combined (optional) with React.
The traditional end-to-end procedure for Idyll;
- You initialize a standalone project per document.
- You write code for the formula, graph, chart, etc.
- Once finished, you publish/deploy the document and embed it to your website/SPA.
Idyll is great at creating charts with 5 lines of code.
Look how smooth that rendering is. Let’s give Idyll a go, here’s the browser editor.
Write some basic markup as usual. At it’s surface it looks like regular markup.
Here’s where it gets cool. We can use components, variables and math equations inside our markup.
Let’s spin up a pie chart.
Notice the logic and the components are inside the bracket syntax []
Sweet! Idyll has built-in components which we can reuse. In case you’re curious, the props you can pass to the chart component are the following.
Equations
Idyll uses KaTeX to typeset mathematical equations.
Fixed
Content inside of a fixed
component will be locked in place, even when the rest of the document scrolls. The scroll example uses the fixed
component to keep the dynamic chart in place:
List of all built-in components.
Getting started with Idyll
Using d3 with Idyll
Using Idyll with NPM
Idyll is one way to make your app stand out. It’s great at it although.
Now go out there and build something awesome!
How to set-up a powerful API with Nodejs, GraphQL, MongoDB, Hapi, and Swagger
Separating your frontend and backend has many advantages: medium.freecodecamp.org
TypeScript — JavaScript with superpowers
Javascript is cool. But do you know what’s even more cool? medium.freecodecamp.org
Thanks for reading! ❤
Recommend
-
4
How to Make Your Programming Resume Stand Out Submitted by NanoDano on Wed, 05/18/2016 - 19:10 As someone who has interviewed...
-
7
How to make your blog images stand out & reflect your identity This article is a bit tricky, yet is going to be super useful to anyone with a blog. Or anyone using images in their communication, conference slides, e...
-
5
No to direct project links ⚠️Designers often add a direct link pointing to Google Play or App Store, marking it as their portfolio.It may give confidence to the talent acquirers that you have worked on a live project, but it d...
-
5
10 Tips to Make Your Pinterest Boards Stand Out By Tamal Das Published 2 hours ago Pinterest is a great platform for sharing your id...
-
6
The 10 Best Tips to Make Your Project Reports Stand Out By Tamal Das Published 20 hours ago If you want to create a projec...
-
4
8 Design Tips to Make Your Blog or Shop Stand Out Using the popular and number one rated Zeen theme as a reference, we'll show you eight modern ways to take your website to the...
-
3
Published 29 April 2022 Updated 29 April 2022 /
-
5
Marketing Tips: How To Make Y...
-
8
Access denied Access denied Error code 1020 You cannot access www.codecademy.com. Refresh the page or conta...
-
7
Game ChangerHow to Make Your Award Application Stand Out
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK