Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Salle
Helper I
Helper I

Deneb vega-lite syntax for commenting code?

Hello everyone, very new to the wonderful world of Deneb like many others.

 

I have tried to add comments to my code by using 
// comments
/* comments */

But receive error message...

 

What is the proper way to comment code in Deneb?

 

Thanks!

1 ACCEPTED SOLUTION
dm-p
Super User
Super User

Hi @Salle,

Comments aren't a supported feature of JSON, so likewise Deneb currently does not support them.

Version 2.0 will have updated functionality to support JSONC (JSON with JavaScript style comments). Whilst v2 development is in progress and currently doesn't have a solid ETA, I have a short walkthrough of this feature available here if you want to see how it will work when it is delivered.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




View solution in original post

5 REPLIES 5
dm-p
Super User
Super User

Hi @Salle,

Comments aren't a supported feature of JSON, so likewise Deneb currently does not support them.

Version 2.0 will have updated functionality to support JSONC (JSON with JavaScript style comments). Whilst v2 development is in progress and currently doesn't have a solid ETA, I have a short walkthrough of this feature available here if you want to see how it will work when it is delivered.

Regards,

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Thanks Daniel!  Have stumbled upon your Deneb feedback a couple of times now and appreciate your responsiveness.  While I'd love to make notes for myself in my code as I'm learning Deneb and Vega, it's so much easier knowing it's not an option yet vs spending hours trying to figure out what I'm doing wrong.  Yay internet!

Thanks for the response Daniel @dm-p!

 

ping @Greg_Deckler 

Greg_Deckler
Super User
Super User

@Salle When you find out, I want to know too. I couldn't figure this one out.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Ha ha, really Greg? I was sure I needed glasses or something or a crash course in google search... 😄

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors