Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
59eb635
saveTable() in sample helper
AndreiKingsley Feb 17, 2025
b612c70
sample helper
AndreiKingsley Apr 23, 2025
905ca7d
german companies
AndreiKingsley Apr 23, 2025
07a281c
samples util update
AndreiKingsley Apr 30, 2025
25079b4
rm dataset
AndreiKingsley Apr 30, 2025
998a285
sample utils
AndreiKingsley Apr 30, 2025
876e3df
sample utils update readme
AndreiKingsley Apr 30, 2025
a8dcbe6
rm german companies
AndreiKingsley Apr 30, 2025
e5093b3
fix publishing
AndreiKingsley Apr 30, 2025
1199513
nb_to_doc fix
AndreiKingsley May 2, 2025
cd010f3
saveDfHtmlSample fix
AndreiKingsley May 2, 2025
bb927be
fix theme change
AndreiKingsley May 3, 2025
99ee90b
update dataframe
AndreiKingsley May 8, 2025
4da3a8e
update version
AndreiKingsley May 8, 2025
9127ecd
update script
AndreiKingsley May 15, 2025
5154a47
old df version
AndreiKingsley May 15, 2025
cddd9cd
Merge branch 'df_update' into samples_util
AndreiKingsley May 16, 2025
2e6f187
update df version to 1.0.0 dev
AndreiKingsley May 16, 2025
d8123b0
fixes
AndreiKingsley Jun 4, 2025
2fbddba
saveDfHtmlSample() for FormattedFrame
Jolanrensen Jul 30, 2025
343ec86
Merge branch 'main' into samples_util
AndreiKingsley Jul 31, 2025
c4873d6
Merge branch 'kotlin_2_2' into samples_util
AndreiKingsley Aug 12, 2025
20a31d8
DF static ids
AndreiKingsley Aug 27, 2025
466b20b
DF static ids fix
AndreiKingsley Sep 1, 2025
02cb467
DF static ids fix
AndreiKingsley Sep 1, 2025
e52fe4f
DF static ids fix for minus
AndreiKingsley Sep 1, 2025
f4dd987
DF static ids fix for all ids
AndreiKingsley Sep 2, 2025
1dbfef6
DF static ids fix for formatted frame
AndreiKingsley Sep 2, 2025
4cc3ef0
Merge branch 'main' into samples_util
AndreiKingsley Sep 15, 2025
e83eab4
update version
AndreiKingsley Sep 15, 2025
eb63d5a
update dataframe version
AndreiKingsley Sep 20, 2025
a34e540
update dataframe version with format fix
AndreiKingsley Sep 29, 2025
eef5bad
update dataframe and jupyter version
AndreiKingsley Sep 29, 2025
bcf4995
Revert "update dataframe version with format fix"
AndreiKingsley Sep 30, 2025
e415377
Revert "update dataframe version"
AndreiKingsley Sep 30, 2025
ef71d96
Revert "update version"
AndreiKingsley Sep 30, 2025
6932d09
Merge branch 'samples_util' into samples_util_format_fix
AndreiKingsley Sep 30, 2025
321b4f0
remove saving dataset
AndreiKingsley Sep 30, 2025
8299669
update DF version
AndreiKingsley Sep 30, 2025
1d243a8
fix Kandy version
AndreiKingsley Oct 1, 2025
320f03c
update dataframe version
AndreiKingsley Oct 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ val published = listOf(
"kandy-echarts",
"kandy-lets-plot",
"kandy-geo",
"kandy-util"
"kandy-util",
"kandy-samples-utils"
)

configure(subprojects.filter { it.name in published }) {
Expand Down
2 changes: 1 addition & 1 deletion docs/cfg/buildprofiles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!--For users contribute-->
<enable-browser-edits>true</enable-browser-edits>
<browser-edits-url>https://github.com/Kotlin/kandy/edit/main/docs/</browser-edits-url>

<include-in-head>include-head.html</include-in-head>
<web-root>https://kotlin.github.io/kandy/</web-root>
<feedback-widget>false</feedback-widget>
<webmaster>webmaster@jetbrains.com</webmaster>
Expand Down
1 change: 1 addition & 0 deletions docs/cfg/include-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script src="static/custom.js"></script>
67 changes: 67 additions & 0 deletions docs/cfg/static/custom.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
window.addEventListener('load', () => {
function updateIframeThemes(theme) {
const iframes = document.querySelectorAll('iframe');

iframes.forEach((iframe) => {
if (iframe.contentWindow && iframe.contentWindow.document) {
iframe.contentWindow.document.documentElement.setAttribute('theme', theme);
}
});
}

function observeHtmlClassChanges() {
const htmlElement = document.documentElement;

const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (mutation.type === 'attributes' && mutation.attributeName === 'class') {
const theme = htmlElement.classList.contains('theme-light') ? 'light' : 'dark';
updateIframeThemes(theme);
}
});
});

observer.observe(htmlElement, { attributes: true });
}

window.addEventListener('message', (event) => {
if (event.data.type === 'iframeHeight') {
document.querySelectorAll('iframe').forEach((iframe) => {
if (iframe.contentWindow === event.source) {
iframe.style.height = event.data.height + 'px';
}
});
}
});

function observeIframe(iframe) {
const theme = document.documentElement.classList.contains('theme-light') ? 'light' : 'dark';

function sendTheme() {
iframe.contentDocument.documentElement.setAttribute('theme', theme);
}

iframe.addEventListener('load', sendTheme);
if (iframe.contentDocument.readyState === 'complete') sendTheme();
}

document.querySelectorAll('iframe').forEach(observeIframe);

const bodyObserver = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
mutation.addedNodes.forEach((node) => {
if (node.tagName === 'IFRAME') observeIframe(node);
else if (node.querySelectorAll) {
node.querySelectorAll('iframe').forEach(observeIframe);
}
});
});
});

bodyObserver.observe(document.body, { childList: true, subtree: true });

observeHtmlClassChanges();

const initialTheme = document.documentElement.classList.contains('theme-light') ? 'light' : 'dark';
updateIframeThemes(initialTheme);
});
42 changes: 21 additions & 21 deletions docs/images/guides/geoGuide/electionResultsPlotByParty.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading