Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 26 2017 18:46
    @mathisonian banned @krpx_division_twitter
  • Sep 22 2017 18:27
    @rreusser banned @krpx_group_twitter
Matthew Conlen
@mathisonian
then you actually don't need to add domain or range, it should be fine without
but you can define the color scale there
fwiw in the future we're going to switch over to vega lite as the default chart solution rather than the current one which has all these weird quirks
Mary McGrath
@mcmcgrath13
@mathisonian here's a screen capture of what's happening. I think I grabbed a full set of css from the idyll-themes and idyll-layouts. Is there other css I missed?
Mary McGrath
@mcmcgrath13
added a gif to the readme: https://github.com/mcmcgrath13/idyll-vue
Birgit Pauli-Haack
@bph_twitter
Thanks so much @mathisonian for taking the time. I'll take another shot at it tomorrow! 👏👍
Matthew Conlen
@mathisonian
that should be it @mcmcgrath13. thanks for uploading the example, i will take a closer look tomorrow
sounds good @bph_twitter let me know if you are still running into trouble
Birgit Pauli-Haack
@bph_twitter
Screen Shot 2021-01-13 at 4.48.22 PM.png
@mathisonian - I am almost there... however the legend are cut off on the fringes and the colorScale doesn't take colors in with hex-values? Are there style props that could be added?
moving to vega lite would be a great move.
I wished I could help.... :-)
Matthew Conlen
@mathisonian
@bph_twitter try adding svg { overflow: visible } to the CSS to deal with the labels being chopped off
you can use vega lite now but have to install it on your own (relatively painless) https://github.com/idyll-lang/idyll-vega-lite
hrmm the colorScale should accept hex.... does it work if you use just normal color names (like 'blue', 'red', etc)
Birgit Pauli-Haack
@bph_twitter
Oh, I place the backticks inside the brackets - duh... the colors work. CSS addition to for svg didn't take, though.
Matthew Conlen
@mathisonian
oh the CSS is a specificity issue i think
try
.VictoryContainer svg {
  overflow: visible;
}

or

svg {
  overflow: visible !important; 
}

both should work

Birgit Pauli-Haack
@bph_twitter
That works, too. Thank you so much! Can the Victory piechart take on different forms, too like the vega lite? Where could I find out?
Matthew Conlen
@mathisonian
there are some options to play with though it isn't as flexible in vega lite
Birgit Pauli-Haack
@bph_twitter
Understood. So glad, I have it all wired up I can do some experiments. Thank you so much for your help!
Matthew Conlen
@mathisonian
np! glad its working
Birgit Pauli-Haack
@bph_twitter
:smile:
xyquadrat
@xyquadrat:kde.org
[m]
Hello people, just started diving into Idyll - really nice so far. I'm planning to use Idyll to make explorable models of climate policy in Switzerland. The necessary things generally seem to be in place, but for one problem I haven't been able to discern how to solve it: Localization. Is it possible to localize date formats, the "By" tag etc. without having to change Idyll source code directly?
I haven't found anything related to this, though maybe I also just used the wrong search terms ;)
suhr
@suhr:matrix.org
[m]
Is there a way to use advanced unicode in Equation?
KaTeX on katex.org shows f \mathbin⨾ g \in \operatorname{hom}(A, C) just fine but Idyll errors couldnt convert string f \mathbin⨾ g \in \operatorname{hom}(A, C)`.
Matthew Conlen
@mathisonian
@xyquadrat:kde.org unfortunately we don't have much direct support for that, what is there now would be on a component-by-component basis - for example on the header you can use the property byLineTemplate to customize "By" https://idyll-lang.org/docs/component/header
1 reply
its been something i've wanted to add good support for but it has remained in the backlog. i expect the component and publishing pipeline are flexible enough that it shouldn't be too painful
its definitely something i'd be interested to talk about more because i think its something we should at least have an example set up for, even while things aren't baked into core idyll yet
@suhr:matrix.org can you use [Equation latex:"complicated string" /] ?
Matthew Conlen
@mathisonian
@mcmcgrath13 sorry i haven't had a chance to dive into the reverse scroll issue yet. were you able to make any progress? if not would. you mind making an issue on github so it doesn't get lost? https://github.com/idyll-lang/idyll/issues
suhr
@suhr:matrix.org
[m]
How do I center an image?
suhr
@suhr:matrix.org
[m]
Oh, the easiest way is to switch the theme back to default.
acrefoot
@acrefoot
Hello! I'm fascinated by idyll. I think it could be a better way to write proposals than static docs (and reminds me of the promise of Wolfram's Computable Document Format that was never really realized). I think a model of trust works well for small groups, but for larger communities, is there something I can read to understand Idyll's security model? I'm not finding much via google.
Matthew Conlen
@mathisonian
@suhr:matrix.org yes, can do via CSS (which is what you're essentially doing when switching the theme)
img { display: block; margin: 0 auto; }
hi @acrefoot happy to talk thru in more detail depending on your use case but here's the high level:
you should think about in two different cases, authoring an idyll doc or reading an idyll doc
in authoring an idyll doc what typically happens is that you are developing it on your local machine (essentially running a local server via nodejs to compile all the pieces of the document together)
in this case the only user inputs would be what you (or your collaborators) are writing, and the security issues would be similar to collaborating on any software tool over github
when you publish the doc, everything is compiled to a static bundle of HTML, JS, and CSS
Matthew Conlen
@mathisonian
so as a reader i am using the browser sandbox to trust that no malicious code is being executed on my machine
we don't natively support arbitrary user code input running on a server at any point
so the downside is that it isn't supporting computation kernals a la jupyter (although you could build this on top if motivated) but the upside is security is the same as any static webpage
acrefoot
@acrefoot
Matthew, thank you! That's very clear, and makes a lot of sense. It sounds like serving published docs from untrusted users requires the same risk as running untrusted third-party javascript code, and that's where I should focus my security reasoning and auditing. I'm glad that there's nothing running server-side to worry about--that makes it a lot easier. Any heavy computation might be possible via lots of cleverness with webassembly, but even then will be extremely limited. Anyhow, my current needs are leagues away from those worries. Thanks again!
Matthew Conlen
@mathisonian
if anyone is interested, we are looking for volunteer user testers to help us polish a new idyll authoring tool and guide our development roadmap: https://forms.gle/wrHnwb3fXwuTwfiN8
Birgit Pauli-Haack
@bph_twitter
Is it's possible to create a pie chart like this with idyll. http://pauli.systems/clientprojects/salah/piechart-idea-3Dchart.png