Account created on 22 June 2012, about 12 years ago
#

Merge Requests

More

Recent comments

🇺🇸United States andileco

andileco made their first commit to this issue’s fork.

🇺🇸United States andileco

@jdgamsterdam - I tried on simplytest.me and was able to uninstall. The trick is after clicking the "Reset to Default Configurations" button, you don't save that page again. Just go directly to Extend > Uninstall, and uninstall the submodules. Then uninstall Charts. Can you please try again?

Also, sorry to see you go! Please let me know if there was a feature that wasn't present and made you want to try a different solution.

🇺🇸United States andileco

This also addresses the field and argument.

🇺🇸United States andileco

Setting this back to "needs work", as this will only work when the view is aggregated. We have another solution that I will commit soon.

🇺🇸United States andileco

andileco changed the visibility of the branch 3452355-make-filter-selector to hidden.

🇺🇸United States andileco

andileco created an issue.

🇺🇸United States andileco

Thank you for the nice write-up and patch. Fixed.

🇺🇸United States andileco

@Dylan Donkersgoed - I slightly modified your code at https://www.drupal.org/project/charts/issues/3449184 🐛 Fix bubble chart for Google Charts Active . Would you be willing to try out that patch?

🇺🇸United States andileco

This looks good! It also inspired me to fix a couple things, particularly related to Bubble charts.

🇺🇸United States andileco

Hi @vistree - apologies for the delay. I've uploaded two videos. Can you take a look and let me know if they help?

🇺🇸United States andileco

1) removed extraneous files (that never should have been there)
2) added a requirements check for either charts_highcharts or charts_highstock
3) added the appropriate dependency library to Highmap.php
4) flagged the js as minified
5) added the type option in Highmap.php
6) updated the version to the latest Highcharts used in the Charts module
7) updated the README
8) marked Drupal 11 compatible
9) ensured PHPCS passed

🇺🇸United States andileco

Have you looked at https://www.drupal.org/project/external_entities and decided that definitely does not work for your use-case?

🇺🇸United States andileco

This was merged in GitLab.

🇺🇸United States andileco

This is fixed. In this situation, you would use code like this in MYMODULE.module:

function MYMODULE_charts_plugin_supported_chart_types_alter(array &$types, string $chart_plugin_id) {
  if ($chart_plugin_id === 'MYLIBRARY') {
    $types = array_diff($types, ['area', 'bar', 'bubble', 'column', 'gauge', 'line', 'scatter', 'solidgauge', 'spline',]);
  }
}

This new hook, which is added to charts.api.php, could also allow you to add additional chart types.

function MYMODULE_charts_plugin_supported_chart_types_alter(array &$types, string $chart_plugin_id) {
  if ($chart_plugin_id === 'MYLIBRARY') {
    $types[] = 'candlestick';
  }
}
🇺🇸United States andileco

I tested and confirmed it works - thanks again!

🇺🇸United States andileco

Thank you for your patch! If you wanted to, you could add that identical code in the C3.js class.

Billboard.js and C3.js are a little neglected within the Charts module just because I end up using Highcharts for my work. I appreciate you identifying, posting, and patching!

🇺🇸United States andileco

andileco changed the visibility of the branch 3437972-enable-aggregation-options to hidden.

🇺🇸United States andileco

andileco made their first commit to this issue’s fork.

🇺🇸United States andileco

@Liam Morland please see the video I added. Is this what you did?

🇺🇸United States andileco

Can you please explain how the later version is not compatible and why we couldn't just patch that version?

🇺🇸United States andileco

andileco made their first commit to this issue’s fork.

🇺🇸United States andileco

That's amazing! You can just add a MR/patch to this issue. I'm away from my computer, but will get back to you on the documentation.

🇺🇸United States andileco

Need to sit and think about the API, but wanted to alert you to https://drupal.org/project/views_csv_source, which we are going to have in really good shape by the end of the week.

🇺🇸United States andileco

@cballenar, I think the difference is updating the libraries to version 11. Will look into this!

🇺🇸United States andileco

andileco made their first commit to this issue’s fork.

🇺🇸United States andileco

andileco made their first commit to this issue’s fork.

🇺🇸United States andileco

andileco made their first commit to this issue’s fork.

🇺🇸United States andileco

@drupaler99 - please try the merge request (patch: https://git.drupalcode.org/project/charts/-/merge_requests/85.patch) and let me know how it goes!

🇺🇸United States andileco

andileco made their first commit to this issue’s fork.

🇺🇸United States andileco

For some reason that I can't figure out, I can't get any patch for this module to apply on my hosting provider (Pantheon). It works fine locally. So if anyone else is facing this situation, here's what I did:

1) I removed my patch in composer.json

2) I created replace_bootstrap_styles_yml.php inside a directory I named "scripts" inside my root, with the following inside:

<?php

// Define the path to the file.
$file_path = './web/modules/contrib/bootstrap_styles/bootstrap_styles.info.yml';

// Read the current content of the file.
$content = file_get_contents($file_path);

// Replace the specified line.
$new_content = str_replace(
  '  - media_library_theme_reset:media_library_theme_reset',
  '  - layout_builder_iframe_modal:layout_builder_iframe_modal',
  $content
);

// Write the updated content back to the file.
file_put_contents($file_path, $new_content);

echo "Replacement complete.\n";

3) I added the following inside my composer.json:

    "scripts": {
        "post-update-cmd": ["php ./scripts/replace_bootstrap_styles_yml.php"],
        "post-install-cmd": ["php ./scripts/replace_bootstrap_styles_yml.php"]
    },

4) Committed and pushed (Pantheon - if you're using the "build step" - runs composer install each time you push, which triggers this script).

Note that you'll need to adjust this based on whether or not you're using the "web" directory or if you have a different name for the folder your "contrib" modules go into.

The code for media_library_theme_reset will still exist in your codebase, but because the dependency for it is no longer in bootstrap_styles, you can uninstall the module via Drush or via that UI.

🇺🇸United States andileco

Thanks for sharing your work! We'll take a look.

🇺🇸United States andileco

Would someone please make a merge request from the latest patch? The code looks good, but I like to see the pipeline results that run on merge requests.

🇺🇸United States andileco

Hi, I'm going to close this ticket and point you to this module that my colleague and I just created: https://www.drupal.org/project/views_csv_source .

It's not production-ready yet, but it would be great to get feedback from users like yourself on its issue queue.

🇺🇸United States andileco

Thank you - fixed!

🇺🇸United States andileco

Remaining issues will be addressed in the (older, but more complicated) ticket added as a related issue.

Production build 0.69.0 2024